sempdf
sempdf v1.9.1Functions

Function: decodeHtmlEntities()

sempdf v1.9.1


sempdf / decodeHtmlEntities

function decodeHtmlEntities(text, maxPasses?): string;

Defined in: src/internal/html-blocks.ts:211

Decodes character references, including the double-encoded (<) output that HTML-in-a-database pipelines routinely produce. Decoding repeats while it keeps changing, bounded so & cannot spin.

Parameters

ParameterTypeDefault value
textstringundefined
maxPassesnumber3

Returns

string

On this page