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:
parent
eab9c1081e
commit
37a17e858a
1 changed files with 1 additions and 1 deletions
|
@ -125,7 +125,7 @@ class HtmlDocument
|
|||
*/
|
||||
public function getHtml(): string
|
||||
{
|
||||
return $this->document->saveHTML();
|
||||
return $this->document->saveHTML($this->document->documentElement);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue