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 |
|---|---|---|---|
| $elementrequired | SimpleXMLElement |
no default value | |
| $collectName | bool |
true
|
Whether the element name should be collected (for the root element) |
Return types
arrayorstring
Parent class
Kirby\Cms\Html
inherited from Kirby\Toolkit\Xml