Dan Brown

Merge pull request #63 from AkibaWolf/patch-1

Fixes encoding issues the page HTML is formatted on save
......@@ -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);
......