diff --git a/OpenGraph.php b/OpenGraph.php index af2e7b6..aa7f584 100644 --- a/OpenGraph.php +++ b/OpenGraph.php @@ -82,6 +82,7 @@ static private function _parse($HTML) { $old_libxml_error = libxml_use_internal_errors(true); $doc = new DOMDocument(); + $HTML = mb_convert_encoding($HTML, 'HTML-ENTITIES', 'auto'); $doc->loadHTML($HTML); libxml_use_internal_errors($old_libxml_error);