Skip to main content

@mark/html@1.0.0

HTML templating for JavaScript.

Works with
This package works with Bun
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Browsers
JSR Score
100%
Published
2 months ago
indexall symbols

Functions

f
escape
from main

Escape a string for safe usage in HTML.

f
html
from main

Render HTML with (nested) template strings. Variables will be escaped by default.

f
raw
from main

Create a raw string that will not be escaped.

Interfaces

I
RawString
from main

A string that will not be escaped.

Type Aliases

T
Argument
from main

A stringifiable argument for the html template function.