From: Dan Brown Date: Tue, 14 Nov 2023 17:23:05 +0000 (+0000) Subject: HTML: Tweaked output from full HtmlDocument X-Git-Tag: v23.12~1^2~21 X-Git-Url: http://source.bookstackapp.com/bookstack/commitdiff_plain/37a17e858a5345d78ffecb2564436ea77115ed1c HTML: Tweaked output from full HtmlDocument Saves specifically the document element on output to HTML, since this results in just the outer HTML being saved while not including the extra XML tags which would show up before with the changes to force utf8 usage. --- diff --git a/app/Util/HtmlDocument.php b/app/Util/HtmlDocument.php index f0e12d528..b8c53d439 100644 --- a/app/Util/HtmlDocument.php +++ b/app/Util/HtmlDocument.php @@ -125,7 +125,7 @@ class HtmlDocument */ public function getHtml(): string { - return $this->document->saveHTML(); + return $this->document->saveHTML($this->document->documentElement); } /**