import { unescape } from "https://deno.land/std@0.218.2/html/mod.ts";
Unescapes HTML entities in text.
Examples
Example 1
Example 1
import { unescape } from "https://deno.land/std@0.218.2/html/entities.ts";
// Default options (only handles &<>'" and numeric entities)
unescape("<>'&AA"); // "<>'&AA"
unescape("þð"); // "þð"
// Using the full named entity list from the HTML spec (~47K un-minified)
import entityList from "https://deno.land/std@0.218.2/html/named_entity_list.json" with { type: "json" };
unescape("þð", { entityList }); // "þð"
Parameters
optional
options: Partial<UnescapeOptions> = [UNSUPPORTED]