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
Alias for https://url.spec.whatwg.org/#url-parsing
Url::normalize(string $url): string
Parameters
| Name | Type | Default |
|---|---|---|
| $urlrequired | string |
no default value |
Return type
string
Parent class
Kirby\Cms\Url
inherited from Kirby\Http\Url