From 37a17e858a5345d78ffecb2564436ea77115ed1c Mon Sep 17 00:00:00 2001 From: Dan Brown Date: Tue, 14 Nov 2023 17:23:05 +0000 Subject: [PATCH] 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. --- app/Util/HtmlDocument.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } /**