Skip to content

Kirby 4.4.1

Xml::encode()

Converts a string to an XML-safe string

Xml::encode(?string $string, bool $html = true): string

Parameters

Name Type Default Description
$string * string|null
$html bool true True = Convert to HTML-safe first

Return type

string

Parent class

Kirby\Toolkit\Xml