Skip to content

Kirby 5.1.2

$dom->body()

Returns the HTML body if one exists

$dom->body(): DOMElement|null

Return types

DOMElementornull

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

Parent class

Kirby\Toolkit\Dom