Skip to content

Kirby 6.0.0

Html::parse()

Parses an XML string and returns an array

Html::parse(string $xml): array|null

Parameters

Name Type Default
$xmlrequired string no default value

Return types

array<string, mixed>ornull

Parsed array or `null` on error

Parent class

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