(PHP Community) Keywords: rss, html, xml
I'm writing a lib to produce RSS/Atom feeds for a site.
I have the character “ in some stories.
I have done htmlspecialchars($title), however, this still produces a character that feedvalidator.com don't like in the XML.
How should I correctly trap/encode this (and other similar) characters?