mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-30 07:32:39 +01:00
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
@ -125,7 +125,7 @@ class HtmlDocument
|
||||
*/
|
||||
public function getHtml(): string
|
||||
{
|
||||
return $this->document->saveHTML();
|
||||
return $this->document->saveHTML($this->document->documentElement);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user