1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-30 04:23:11 +03:00

Standardized vue component http access and fixed some small bugs

This commit is contained in:
Dan Brown
2015-12-28 15:58:13 +00:00
parent 98d9d8d71b
commit 4db692309b
5 changed files with 40 additions and 46 deletions

View File

@ -120,6 +120,7 @@ class PageRepo
*/
protected function formatHtml($htmlText)
{
if($htmlText == '') return $htmlText;
libxml_use_internal_errors(true);
$doc = new \DOMDocument();
$doc->loadHTML($htmlText);