Skip to content

Kirby 6.0.1

$blocks->sanitize()

Sanitizes raw HTML that is stored verbatim in a block (e.g. the markdown block created from a table) with a strict allowlist to prevent stored XSS

$blocks->sanitize(string $html): string

Parameters

Name Type Default
$htmlrequired string no default value

Return type

string

Parent class

Kirby\Parsley\Schema\Blocks