diff --git a/src/Dom/Document.php b/src/Dom/Document.php index 345b3bb6..4dfe3ce8 100644 --- a/src/Dom/Document.php +++ b/src/Dom/Document.php @@ -250,7 +250,7 @@ public function load($content = null) { libxml_use_internal_errors(true); - $string = mb_convert_encoding(trim($string), "HTML-ENTITIES", "utf-8"); + $string = mb_convert_encoding(trim($string), "utf-8", "HTML-ENTITIES"); $this->domDocument->loadHTML($string); } @@ -330,4 +330,4 @@ public function __get($name) { return $value; } -}# \ No newline at end of file +}#