Skip to content

Kirby 4.5.0

$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

Parent class

Kirby\Toolkit\Dom