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