‘xmlParseEntityRef: no name’ warnings while loading xml into a php file

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.

Leave a Comment