std/html/mod.ts

19 lines
495 B
TypeScript

// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// This module is browser compatible.
/**
* Functions for HTML tasks such as escaping or unescaping HTML entities.
*
* ```ts
* import { unescape } from "@std/html/entities";
* import { assertEquals } from "@std/assert/assert-equals";
*
* assertEquals(unescape("&lt;&gt;&#39;&amp;AA"), "<>'&AA");
* assertEquals(unescape("&thorn;&eth;"), "&thorn;&eth;");
* ```
*
* @module
*/
export * from "./entities.ts";