Skip to content

Kirby 4.4.1

Escape::js()

Escape JavaScript data values

Escape::js(string $string): string

Parameters

Name Type Default
$string * string

Return type

string

Parent class

Kirby\Toolkit\Escape