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
| Class | Description |
|---|---|
| Hypertext | The Hypertext class is used to represent HTML code. |
Functions
| Function | Description |
|---|---|
| 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 Alias | Description |
|---|---|
| Html | The Html type represents anything that can be converted to HTML. Use this type in your functions to accept HTML code. |