Fix HTML character entities in RSS/Atom feeds
Also posted to my blog…
A mild gotcha that the WordPress folks (users and coders alike) might want to take notice of:
My RSS and Atom feeds are currently invalid because I inserted HTML character entities (specifically
ñ) into my posts, rather than using the numerical Unicode equivalents or inserting the characters directly.
The fix, if you choose to code it, is to do a quick search-and-replace sweep for those entities when outputting any sort of XML other than XHTML. The fix, if you choose to author it, is not to be lazy like I am—look up the numbers and use ’em.
- The topic ‘Fix HTML character entities in RSS/Atom feeds’ is closed to new replies.