Url::hasDangerousScheme()
Checks if a URL starts with a dangerous URI scheme (e.g. javascript:) that must never appear in rendered href or src attributes.
Url::hasDangerousScheme(?string $url = null): bool
Parameters
| Name | Type | Default |
|---|---|---|
| $url | string|null |
null |
Return type
bool
Parent class
Kirby\Cms\Url inherited from Kirby\Http\Url