Skip to main content

Interface: SafeHtmlProps

@headstartwp/core.react.SafeHtmlProps

Properties

html

html: string

The HTML string to be rendered.

<SafeHtml html="<div><p>hello world</p> div content</div>" />

Defined in

packages/core/src/react/components/SafeHtml.tsx:14


ksesAllowList

Optional ksesAllowList: IWhiteList

The allow list for the parser

<SafeHtml
html="<div><p>hello world</p> div content</div>"
ksesAllowList={{ div: [] }}
/>

Defined in

packages/core/src/react/components/SafeHtml.tsx:26