apiref
tagged-hypertext@1.0.1

tagged-hypertext  EntryPoint

The tagged-hypertext package provides the html function that can be used as a template tag to safely generate HTML code.

Classes

ClassDescription
HypertextThe Hypertext class is used to represent HTML code.

Functions

FunctionDescription
html(strings, values)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
renderHtml(html)Convert a value to HTML.

Type Aliases

Type AliasDescription
HtmlThe Html type represents anything that can be converted to HTML. Use this type in your functions to accept HTML code.