Dom::isAllowedAttr()
Checks for allowed attributes according to the allowlist
Dom::isAllowedAttr(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