XML Encoding
Date: 05/26/05
(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?
Source: http://www.livejournal.com/community/php/301066.html