Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/html_parser/src/utils/entities/mod.ts>encodeNonAsciiHTML

Port of fb55/htmlparser2 for Deno
Latest
variable encodeNonAsciiHTML
Re-export
import { encodeNonAsciiHTML } from "https://deno.land/x/html_parser@v0.1.3/src/utils/entities/mod.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.