Skip to content

Kirby 3.8.4

Html::simplify()

Breaks a SimpleXMLElement down into a simpler tree structure of arrays and strings

Html::simplify(SimpleXMLElement $element, bool $collectName = true): array|string

Parameters

Name Type Default Description
$element * SimpleXMLElement
$collectName bool true Whether the element name should be collected (for the root element)

Return type

array|string

Parent class

Kirby\Cms\Html inherited from Kirby\Toolkit\Xml