We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 65da7d7 + 7a9a51c commit f16bc81Copy full SHA for f16bc81
src/PHPHtmlParser/Dom.php
@@ -520,6 +520,11 @@ protected function clean(string $str): string
520
}
521
522
523
+ //sometime need predicate an encode is from encoding
524
+ if ($this->options->get('useFromEncoding') != NULL) {
525
+ $str = mb_convert_encoding( $str, "UTF-8", $this->options->get('useFromEncoding'));
526
+ }
527
+
528
// remove white space before closing tags
529
$str = \mb_eregi_replace("'\s+>", "'>", $str);
530
if ($str === false) {
0 commit comments