The XML is most probably invalid.
The problem could be the “&”
$text=preg_replace('/&(?!#?[a-z0-9]+;)/g', '&', $text);
will get rid of the “&” and replace it with it’s HTML code version…give it a try.
The XML is most probably invalid.
The problem could be the “&”
$text=preg_replace('/&(?!#?[a-z0-9]+;)/g', '&', $text);
will get rid of the “&” and replace it with it’s HTML code version…give it a try.