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

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

Port of fb55/htmlparser2 for Deno
Latest
function decodeStrict
Deprecated
Deprecated

Use decode with the mode set to Strict.

import { decodeStrict } from "https://deno.land/x/html_parser@v0.1.3/src/utils/entities/mod.ts";

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

Parameters

data: string

String to decode.

optional
options: DecodingOptions | EntityLevel = [UNSUPPORTED]

Decoding options.

Returns

string