Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
variable encodeNonAsciiHTML
import { encodeNonAsciiHTML } from "https://deno.land/x/html_parser@v0.1.3/src/utils/entities/encode.ts";

Encodes all non-ASCII characters, as well as characters not valid in HTML documents using HTML entities.

If a character has no equivalent entity, a numeric hexadecimal reference (eg. ü) will be used.