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.
*/
public function getHtml(): string
{
*/
public function getHtml(): string
{
- return $this->document->saveHTML();
+ return $this->document->saveHTML($this->document->documentElement);