Skip to main content
zerotal

Documentation


Documentation / @zerotal/core / view / SafeHtml

Class: SafeHtml

Defined in: view/jsx-runtime.ts:59

Opaque runtime wrapper produced by every JSX expression. Signals to renderChildren() that the value is already-escaped HTML and must NOT be re-escaped. End users should not construct this directly — use JSX syntax or the safe() / Raw helpers from @zerotal/core.

Constructors

Constructor

new SafeHtml(value): SafeHtml

Defined in: view/jsx-runtime.ts:60

Parameters

value

string

Returns

SafeHtml

Properties

value

readonly value: string

Defined in: view/jsx-runtime.ts:60

Methods

toString()

toString(): string

Defined in: view/jsx-runtime.ts:61

Returns

string