Dom::isAllowedGlobalAttr()
Checks for allowed attributes according to the global allowlist
Dom::isAllowedGlobalAttr(DOMAttr $attr, array $options): true|string
Parameters
| Name | Type | Default |
|---|---|---|
| $attrrequired | DOMAttr |
no default value |
| $optionsrequired | array |
no default value |
Return types
trueorstring
If not allowed, an error message is returned