Hi,
I have narrowed down a problem when generating an RSS xml file from a database, to html entities.
When not encoded in the database (as in, <a href=""></a> ), then it displays fine.
When encoded in the database (as in <a href=""> and also & and £ ), then it doesn't display, and when using:
$output .= "<description>" . htmlspecialchars_decode($info['content']) . "</description>";
It doesn't work. Nothing is displayed at all in the browser. In the latest entry, there is a £ in the description.
I need the html entities encoded properly, as some of the database content is also displayed on the web page. For the RSS xml file, the content type is:
Content-Type: application/rss+xml; charset=ISO-8859-1
Any solutions? Would utf-8 charset in the xml file work and keep the RSS valid?