Skip to content

Kirby 4.1.2

Svg::sanitize()

Sanitizes the given string

Svg::sanitize(string $string, bool $isExternal = false): string

Parameters

Name Type Default Description
$string * string
$isExternal bool false Whether the string is from an external file
that may be accessed directly

Return type

string

Exceptions

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

Parent class

Kirby\Sane\Svg inherited from Kirby\Sane\DomHandler