function decodeHtmlEntities
decodeHtmlEntities(str: string): string

Decodes the entities in str in a single pass, so " reads ". An entity it doesn't know, or a code point that doesn't exist, is left as written. Also used by bandcamp-tralbum.ts on the JSON a page carries in an attribute.

Parameters

str: string

Return Type

string

Usage

import { decodeHtmlEntities } from "api/remote/html.ts";