I've been exploring RSS 2.0 and while testing some initial code I keep getting stuck on the same error.
"An invalid character was found in text content. Error processing resource"
http://www.zeropaid.com/includes/xml_topguides.xml
I've tried the following to remove the invalid character with no luck:
$desc = strip_tags($desc, '<a><b><i><u>');
$desc = eregi_replace("(<)+(.*)(>)+", "", $desc);
$desc = ereg_replace ("'", "", $desc);
$desc = htmlspecialchars($desc, ENT_NOQUOTES);
I have also tried using CDATA to encode the description field, but I still get the error.
Is there any way in PHP or RSS to encode the data going into the description field? How can I effectivly get around this without creating all this code and not get the error?
Thanks,
Jorge G.