Skip to content

Kirby 4.9.6

Url::normalize()

Normalizes a URL the same way a browser does before it parses it: ASCII tab and newline characters are removed from anywhere in the string, leading and trailing C0 control characters and spaces are trimmed and a leading run of slashes is folded to forward slashes

Url::normalize(string $url): string

Parameters

Name Type Default
$url * string –

Return type

string

Parent class

Kirby\Cms\Url inherited from Kirby\Http\Url