Linked Questions

Popular Questions

load DOMDocument with HTML Special Characters (php)

Asked by At

i have a problem to load a xml-file with php. I use DOMDocument, because i need the function getElementsByTagName.
I use this code.

$dom = new DomDocument('1.0', 'UTF-8');
$dom->resolveExternals = false;

<?xml version="1.0" encoding="UTF-8"?>
  <value>Verliebt! &rsquo;</value>

Warning: DOMDocument::load() [domdocument.load]: Entity 'rsquo' not defined in /tmp/php1VRb3N, line: 4 in /www/htdocs/bla/upload.php on line 51

Related Questions