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.
1 parent 668c770 commit 7a9a51cCopy full SHA for 7a9a51c
src/PHPHtmlParser/Dom.php
@@ -527,6 +527,11 @@ protected function clean(string $str): string
527
}
528
529
530
+ //sometime need predicate an encode is from encoding
531
+ if ($this->options->get('useFromEncoding') != NULL) {
532
+ $str = mb_convert_encoding( $str, "UTF-8", $this->options->get('useFromEncoding'));
533
+ }
534
+
535
// remove white space before closing tags
536
$str = mb_eregi_replace("'\s+>", "'>", $str);
537
if ($str === false) {
0 commit comments