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

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

Port of fb55/htmlparser2 for Deno
Latest
import * as htmlParser from "https://deno.land/x/html_parser@v0.1.3/src/utils/entities/mod.ts";

Enums

Determines whether some entities are allowed to be written without a trailing ;.

The level of entities to support.

Variables

Encodes all entities and non-ASCII characters in the input.

Encodes all entities and non-ASCII characters in the input.

Encodes all entities and non-ASCII characters in the input.

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

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

Functions

Decodes a string with entities.

f
decodeStrict
deprecated

Decodes a string with entities. Does not allow missing trailing semicolons for entities.

Encodes a string with entities.

Encodes all non-ASCII characters, as well as characters not valid in XML documents using numeric hexadecimal reference (eg. ü).

Encodes all characters not valid in XML documents using numeric hexadecimal reference (eg. ü).

Interfaces

Options for encode.