Skip to content

Kirby 5.6.3

Sane::sanitize()

Sanitizes the given string with the specified handler

Sane::sanitize(string $string, string $type, bool $isExternal = false): string

Parameters

Name Type Default Description
$stringrequired string no default value
$typerequired 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\Sane