Home > @uniformdev/richtext > linkParamValueToHtmlAttributes
linkParamValueToHtmlAttributes() function
Converts a link parameter value into a plain HTML attribute bag suitable for an <a> element. Applies a web-channel security denylist (event handlers, script-executing URL schemes on the href and any value, dangerous attribute names) and auto-adds rel="noopener noreferrer" for any case variant of target="_blank".
Signature:
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
link |
LinkParamValue |
Returns:
Record<string, string>