diff --git a/app/Repos/PageRepo.php b/app/Repos/PageRepo.php index 25b869bc3..1acf3c847 100644 --- a/app/Repos/PageRepo.php +++ b/app/Repos/PageRepo.php @@ -125,7 +125,7 @@ class PageRepo if($htmlText == '') return $htmlText; libxml_use_internal_errors(true); $doc = new \DOMDocument(); - $doc->loadHTML($htmlText); + $doc->loadHTML(mb_convert_encoding($htmlText, 'HTML-ENTITIES', 'UTF-8')); $container = $doc->documentElement; $body = $container->childNodes->item(0); @@ -376,4 +376,4 @@ class PageRepo return $this->page->orderBy('updated_at', 'desc')->paginate($count); } -} \ No newline at end of file +}