Skip to content

Commit

Permalink
Merge pull request #2 from hauk92/main
Browse files Browse the repository at this point in the history
Replace mb_convert_encoding
  • Loading branch information
Wilkware authored Jul 30, 2024
2 parents eb16823 + 15a93d9 commit c3dcaa1
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 c3dcaa1

Please sign in to comment.