Skip to content

Kirby 3.9.8

Html::sanitize()

Sanitizes the given string

Html::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\Html inherited from Kirby\Sane\DomHandler