Skip to content

Commit

Permalink
Replace mb_convert_encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
hauk92 committed Jul 26, 2024
1 parent eb16823 commit 15a93d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Abfall_IO/module.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion MuellMax/module.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 15a93d9

Please sign in to comment.