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