basalt / mailer/src / SafeHtml
Class: SafeHtml
Defined in: mailer/src/html.ts:32
A fragment of already-safe HTML. Produced by html and raw; html interpolates it verbatim, so nested templates compose without double-escaping. Stringifies to its markup, so it drops straight into a mail definition's html field.
Constructors
Constructor
> new SafeHtml(value): SafeHtml
Defined in: mailer/src/html.ts:33
Parameters
value
string
Returns
SafeHtml
Properties
value
> readonly value: string
Defined in: mailer/src/html.ts:33
Methods
toString()
> toString(): string
Defined in: mailer/src/html.ts:34
Returns
string