]> BookStack Code Mirror - bookstack/blobdiff - app/Repos/PageRepo.php
Merge pull request #63 from AkibaWolf/patch-1
[bookstack] / app / Repos / PageRepo.php
index 25b869bc380c23261e373d0a58e12e30ddbc41b8..1acf3c84703db2e4216077048228a332ec888624 100644 (file)
@@ -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
+}