Skip to content

Kirby 3.9.8

Xml::sanitize()

Sanitizes the given string

Xml::sanitize(string $string): string

Parameters

Name Type Default
$string * string

Return type

string

Exceptions

Type Description
Kirby\Exception\InvalidArgumentException If the file couldn't be parsed

Parent class

Kirby\Sane\Xml inherited from Kirby\Sane\DomHandler