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

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

Port of fb55/htmlparser2 for Deno
Latest
enum EncodingMode
import { EncodingMode } from "https://deno.land/x/html_parser@v0.1.3/src/utils/entities/mod.ts";

Members

ASCII

The output consists only of ASCII characters. Characters that need escaping within HTML, and characters that aren't ASCII characters will be escaped.

Extensive

Encode all characters that have an equivalent entity, as well as all characters that are not ASCII characters.

UTF8

The output is UTF-8 encoded. Only characters that need escaping within HTML will be escaped.