Tony B
2010-Jun-23 11:32 UTC
[R] is there a Decode HTML function somewhere (similar to URLdecode)?
Dear all, I am aware of the URLdecode(..) function and was wondering if there was something similar for HTML? For example, I would like to convert strings like this:> x <- "isn't"into this:> "isn't"Many thanks for your time, Tony Breyal # O/S: Windows Vista 32 bit # R version 2.11.0 (2010-04-22)
Tony Breyal
2010-Jun-24 09:53 UTC
[R] is there a Decode HTML function somewhere (similar to URLdecode)?
(I've just realised that the example above might not be clear when viewed in a browser) So just to clarify, I would like to convert HTML entities into the ASCII equivalent using R, saving the results to a plain text file. For example: x <- paste("i", "s", "n", "&", "a", "p", "o", "s", ";", "t", sep = "") would become the following, when output to the plain text file:> "isn't"Thank you again for your time, Tony Breyal On 23 June 2010 12:32, Tony B <tony.breyal at googlemail.com> wrote:> Dear all, > > I am aware of the URLdecode(..) function and was wondering if there > was something similar for HTML? > > For example, I would like to convert strings like this: > >> x <- "isn't" > > into this: > >> "isn't" > > Many thanks for your time, > Tony Breyal > > # O/S: Windows Vista 32 bit > # R version 2.11.0 (2010-04-22)-- Tony Breyal
Reasonably Related Threads
- RFE: vectorize URLdecode
- Extracting text from html code using the RCurl package.
- RCurl::postForm() -- how does one determine what the names are of each form element in an online html form?
- reading formatted txt file into a data frame
- What has happened to the R-Help Google Groups Archive? Alternative?