Skip to content

Kirby 6.0.1

Dom::isAllowedAttr()

Checks for allowed attributes according to the allowlist. If not allowed, an error message is returned.

Dom::isAllowedAttr(DOMAttr $attr, array $options): string|true

Parameters

Name Type Default
$attrrequired DOMAttr no default value
$optionsrequired array no default value

Return types

stringortrue

Parent class

Kirby\Toolkit\Dom