Stripping   out of RSS feed with PHP

flolcatrord

New Member
I have this function:\[code\]function validate($data) { $newData = http://stackoverflow.com/questions/11037929/str_replace("&nbsp;", " ", $newData); $newData = http://stackoverflow.com/questions/11037929/utf8_encode(htmlentities(strip_tags($data))); return $newData;}$rssfeed.='<description><![CDATA['.validate($news).']]></description>';\[/code\]MY MySQL table that it draws from uses utf8-general_ci encoding.However, my XML feed still has \[code\]&nbsp;\[/code\] in it. Any ideas why?
 
Back
Top