ParserProps
Hierarchy
- ParserProps
Index
Properties
optionalallowAttributes
optionalallowElements
Disable filtering and allow all non-banned/blocked HTML elements to be rendered.
optionalallowList
List of HTML tag names to allow and render. Defaults to the ALLOWED_TAG_LIST
constant.
optionalblockList
List of HTML tag names to disallow and not render. Overrides allow list.
optionalcontainerTagName
The container element to parse content in. Applies browser semantic rules and overrides tagName
.
optionaldisableLineBreaks
Disable the conversion of new lines to <br />
elements.
optionalescapeHtml
Escape all HTML before parsing.
optionalnoHtml
Strip all HTML while rendering.
optionalnoHtmlExceptMatchers
Strip all HTML, except HTML generated by matchers, while rendering.
optionaltransform
Transformer ran on each HTML element. Return a new element, null to remove current element, or undefined to do nothing.
optionaltransformOnlyAllowList
Disable transformer for non-allowList tags.
Disable filtering and allow all non-banned HTML attributes.