HTML entity decoding
Posted: Mon Mar 17, 2014 10:11 pm
I'm grabbing text from a web page, and this often includes HTML entities, as in this string: "In this second chapter of Ayumi’s biography".
I could simply set the HTMLtext of a field to the grabbed text, but it also contains stuff I want to keep, such as img tags. I could simply run it through a few 'replace' steps, but is there a neater method?
I could simply set the HTMLtext of a field to the grabbed text, but it also contains stuff I want to keep, such as img tags. I could simply run it through a few 'replace' steps, but is there a neater method?