Skip to content

Kirby 5.0.4

Handler::sanitize()

Sanitizes the given string

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

Parameters

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

Return type

string

Parent class

Kirby\Sane\Handler