diff --git a/Abfall_IO/module.php b/Abfall_IO/module.php index 10de386..77721d0 100644 --- a/Abfall_IO/module.php +++ b/Abfall_IO/module.php @@ -1153,7 +1153,7 @@ protected function GetDocument($url, $request) $dom = new DOMDocument(); // disable libxml errors libxml_use_internal_errors(true); - $dom->loadHTML(mb_convert_encoding($response, 'HTML-ENTITIES', 'UTF-8')); + $dom->loadHTML(htmlspecialchars_decode(htmlentities($response, ENT_NOQUOTES), ENT_NOQUOTES)); // remove errors for yucky html libxml_clear_errors(); $xpath = new DOMXpath($dom); diff --git a/MuellMax/module.php b/MuellMax/module.php index ecb31f4..e740012 100644 --- a/MuellMax/module.php +++ b/MuellMax/module.php @@ -1061,7 +1061,7 @@ protected function GetDocument($url, $request) $dom = new DOMDocument(); // disable libxml errors libxml_use_internal_errors(true); - $dom->loadHTML(mb_convert_encoding($response, 'HTML-ENTITIES', 'UTF-8')); + $dom->loadHTML(htmlspecialchars_decode(htmlentities($response, ENT_NOQUOTES), ENT_NOQUOTES)); // remove errors for yucky html libxml_clear_errors(); $xpath = new DOMXpath($dom);