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
true
orstring
If not allowed, an error message is returned