Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Built and signed on GitHub Actions
latest
dtinth/thaiSafely generate HTML strings
This package works with Cloudflare Workers, Node.js, Deno, Bun, 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.