Home > @uniformdev/richtext > isDangerousLinkAttributeKey

isDangerousLinkAttributeKey() function

True for attribute keys the Uniform web SDKs strip at render time: inline event handlers (on*) and dangerous attribute names (href, src, style, formaction). Authoring UIs should use this to warn before such keys are ever persisted.

Signature:

Parameters

Parameter

Type

Description

key

string

Returns:

boolean