Skip to content

Kirby 6.0.0

Str::unhtml()

Removes all html tags and encoded chars from a string

Str::unhtml(string|null $string): string

Parameters

Name Type Default
$string stringornull no default value

Return type

string

Parent class

Kirby\Toolkit\Str

Examples

echo Str::unhtml('some &uuml;ber <em>crazy</em> stuff');
// output: some über crazy stuff