Skip to main content
Home

@mizu/html@0.9.4
Built and signed on GitHub Actions

Works with
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 Score76%
Downloads1/wk
Publisheda month ago (0.9.4)

🖊️ *html directive for mizu.js

*html="content"

Version Phase
41 — CONTENT

Set element's innerHTML.

<template *html="'<p>...</p>'">
  <!--<p>...</p>-->
</template>

Notes

Warning

Raw HTML can introduce XSS vulnerabilities. Exercise caution when using expressions from untrusted sources.

Built and signed on
GitHub Actions

Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@mizu/html

Import symbol

import * as html from "@mizu/html";
or

Import directly with a jsr specifier

import * as html from "jsr:@mizu/html";

Add Package

pnpm i jsr:@mizu/html
or (using pnpm 10.8 or older)
pnpm dlx jsr add @mizu/html

Import symbol

import * as html from "@mizu/html";

Add Package

yarn add jsr:@mizu/html
or (using Yarn 4.8 or older)
yarn dlx jsr add @mizu/html

Import symbol

import * as html from "@mizu/html";

Add Package

vlt install jsr:@mizu/html

Import symbol

import * as html from "@mizu/html";

Add Package

npx jsr add @mizu/html

Import symbol

import * as html from "@mizu/html";

Add Package

bunx jsr add @mizu/html

Import symbol

import * as html from "@mizu/html";