type
AttrProvider
Extension point for adding/changing attributes on HTML tags for a node.
methods
setAttrs |
Set the attributes for an HTML tag of the specified node by modyfing the provided map. |
---|
Slot Details
setAttrs
src
abstract Void setAttrs(Node node, Str tagName, Str:Str? attrs)
Set the attributes for an HTML tag of the specified node by modyfing the provided map.
This allows to change or even remove default attributes.
The attribute key and values will be escaped (preserving character entities), so don't escape them here, otherwise they will be double-escaped.
This method may be called multiple times for the same node, if the node is rendered using multiple nested tags (e.g. code blocks)