html
HTML escape and unescape inspired by html.
escape
Escape five html entities: <, >, &, ' and ".
import { escape } from "https://deno.land/x/html_escape/escape.ts"
console.log(escape(`"Fran & Freddie's Diner" <tasty@example.com>`));
// "Fran & Freddie's Diner" <tasty@example.com>
unescape
Unescape html entities to characters.
import { unescape } from "https://deno.land/x/html_escape/unescape.ts"
console.log(unescape(""Fran & Freddie's Diner" <tasty@example.com>"));
// "Fran & Freddie's Diner" <tasty@example.com>