allowsHtml
allowsHtml(
policy):boolean
Defined in: packages/core/src/capabilities.ts:122
Whether raw markup is permitted.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
policy | CapabilityPolicy |
Returns
Section titled “Returns”boolean
Remarks
Section titled “Remarks”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.