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.
This commit is contained in:
Dan Brown 2023-11-14 17:23:05 +00:00
parent eab9c1081e
commit 37a17e858a
No known key found for this signature in database
GPG key ID: 46D9F943C24A2EF9

View file

@ -125,7 +125,7 @@ class HtmlDocument
*/ */
public function getHtml(): string public function getHtml(): string
{ {
return $this->document->saveHTML(); return $this->document->saveHTML($this->document->documentElement);
} }
/** /**