Check whether an HTML attribute name is safe to include in rendered output.
The check applies three rules in order:
on*
aria-*
data-*
SAFE_ATTRIBUTES
The attribute name to validate (case-insensitive).
true if the attribute is safe to render.
true
Check whether an HTML attribute name is safe to include in rendered output.
The check applies three rules in order:
on*prefix) unconditionallyaria-*) and custom data (data-*) attributesSAFE_ATTRIBUTESallowlist