Skip to content

Kirby 5.0.4

$dom->toString()

Returns the document markup as string

$dom->toString(bool $normalize = false): string

Parameters

Name Type Default Description
$normalize bool false If set to true, the document
is exported with an XML declaration/
full HTML markup even if the input
didn't have them

Return type

string

This method modifies the existing $dom object it is applied to and returns it again.

Parent class

Kirby\Toolkit\Dom