PopupBuilder
Defined in: packages/core/src/renderer/popup-builder.ts:29
Builds popup HTML from configuration and feature properties.
Remarks
Section titled “Remarks”Carries the capability policy, because whether an !html-marked value renders
as markup or as escaped text is a trust decision, not a content one. The
default policy is untrusted, so a builder constructed with no policy denies
raw HTML — the safe default a host that has thought about none of this gets.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new PopupBuilder(
policy?):PopupBuilder
Defined in: packages/core/src/renderer/popup-builder.ts:32
Parameters
Section titled “Parameters”| Parameter | Type | Default value |
|---|---|---|
policy | CapabilityPolicy | DEFAULT_POLICY |
Returns
Section titled “Returns”PopupBuilder
Methods
Section titled “Methods”build()
Section titled “build()”build(
content,properties):string
Defined in: packages/core/src/renderer/popup-builder.ts:39
Build HTML string from popup content config and feature properties
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
content | Record<string, object[]>[] |
properties | Record<string, any> |
Returns
Section titled “Returns”string