$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 documentis 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.