Skip to main content

@std/html@1.0.3
Built and signed on GitHub Actions

Functions for HTML, such as escaping or unescaping HTML entities

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
2 months ago (1.0.3)

Functions for HTML tasks such as escaping or unescaping HTML entities.

import { unescape } from "@std/html/entities";
import { assertEquals } from "@std/assert";

assertEquals(unescape("&lt;&gt;&#39;&amp;AA"), "<>'&AA");
assertEquals(unescape("&thorn;&eth;"), "&thorn;&eth;");
Built and signed on
GitHub Actions
View transparency log

Add Package

deno add jsr:@std/html

Import symbol

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

---- OR ----

Import directly with a jsr specifier

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

Add Package

npx jsr add @std/html

Import symbol

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

Add Package

yarn dlx jsr add @std/html

Import symbol

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

Add Package

pnpm dlx jsr add @std/html

Import symbol

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

Add Package

bunx jsr add @std/html

Import symbol

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