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);
return $this->page->orderBy('updated_at', 'desc')->paginate($count);
}
-}
\ No newline at end of file
+}