Skip to content

Kirby 6.0.1

Dom::isAllowedUrl()

Checks if the URL is acceptable for URL attributes. If not allowed, an error message is returned.

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

Parameters

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

Return types

stringortrue

Parent class

Kirby\Toolkit\Dom