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

x/frugal/docs/dep/he.ts>DecodeOptions

A frugal web framework
Go to Latest
interface DecodeOptions
import { type DecodeOptions } from "https://deno.land/x/frugal@0.5.0/docs/dep/he.ts";

Properties

optional
isAttributeValue: boolean | undefined

The default value for the isAttributeValue option is false. This means that decode() will decode the string as if it were used in a text context in an HTML document. HTML has different rules for parsing character references in attribute values — set this option to true to treat the input string as if it were used as an attribute value.

optional
strict: boolean | undefined

The default value for the strict option is false. This means that decode() will decode any HTML text content you feed it, even if it contains any entities that cause parse errors. To throw an error when such invalid HTML is encountered, set the strict option to true. This option makes it possible to use he as part of HTML parsers and HTML validators.