Skip to content

Kirby 4.5.0

Handler::sanitize()

Sanitizes the given string

Handler::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

Parent class

Kirby\Sane\Handler