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);
}
/**