Skip to content

allowsHtml

allowsHtml(policy): boolean

Defined in: packages/core/src/capabilities.ts:122

Whether raw markup is permitted.

ParameterType
policyCapabilityPolicy

boolean

Default-deny in untrusted contexts, and an explicit allowHtml: true is honored there — a host that has its own sanitizer is entitled to say so. The default is what matters: a host that has thought about none of this gets the safe behavior rather than the convenient one.