html() Function
Use the html
template tag to safely generate HTML. It returns a Hypertext
object. You can use the toHtml
method to get the HTML code. Interpolated values are escaped unless they are
Signature
export declare function html(strings: TemplateStringsArray, ...values: any[]): Hypertext;
Parameters
Parameter | Type | Description |
---|---|---|
strings | TemplateStringsArray | |
values | any[] | |
(Returns) | Hypertext |