@ende/html

ende add jsr:@ende/html

Version 2026.10.15 on JSR.

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

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

assertEquals(unescape("&lt;&gt;&#39;&amp;AA"), "<>'&AA");
assertEquals(unescape("&thorn;&eth;"), "&thorn;&eth;");

Modules

Exports

  • EntityList — Object structure for a list of HTML entities.
  • escape — Escapes text for safe interpolation into HTML text content and quoted attributes.
  • unescape — Unescapes HTML entities in text.
  • UnescapeOptions — Options for unescape.