Skip to main content

@thai/html@0.0.5
Built and signed on GitHub Actions

Safely generate HTML strings

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
100%
Published
3 months ago (0.0.5)
T
Html

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

f
html

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

c
Hypertext

The Hypertext class is used to represent HTML code.

f
renderHtml

Convert a value to HTML.