Hi All,

I have a question about my RSS feed. Say I have a non-breaking space in the form   saved in mysql database it crashes the RSS feed when I try and output the data.

How would it change   to just a plain &

Would it be using htmlspecialchars? Ie:

PHP Code:
            $rssValue .= "<title>" htmlspecialchars($row['headline'], ENT_QUOTES) . "</title>\r\n"
Or is it done using the character encoding ie:

PHP Code:
$rssValue  = "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\r\n";
$rssValue .= "<rss version=\"2.0\">\r\n";
Or have I misunderstood? How would/can it be done?