Skip to content

Kirby 5.2.0

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

Parent class

Kirby\Toolkit\Dom