Skip to content

Kirby 4.4.1

html()

Creates safe html by encoding special characters

html(?string $string, bool $keepTags = false): string

Parameters

Name Type Default Description
$string * string|null unencoded text
$keepTags bool false

Return type

string