From 15a93d9d1399199927f5d026f79d8de2f67c3383 Mon Sep 17 00:00:00 2001 From: hauk92 <47572039+hauk92@users.noreply.github.com> Date: Fri, 26 Jul 2024 22:58:31 +0200 Subject: [PATCH] Replace mb_convert_encoding --- Abfall_IO/module.php | 2 +- MuellMax/module.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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);