Skip to content

Kirby 5.0.4

Dom::isAllowedUrl()

Checks if the URL is acceptable for URL attributes

Dom::isAllowedUrl(string $url, array $options): true|string

Parameters

Name Type Default
$urlrequired string no default value
$optionsrequired array no default value

Return types

trueorstring

If not allowed, an error message is returned

Parent class

Kirby\Toolkit\Dom