Skip to content

Function: unescapeHtml() ​

ts
function unescapeHtml(text): string;

Defined in: unescapeHtml.ts:14

Unescapes HTML entities

Parameters ​

text ​

string

The text to unescape

Returns ​

string

The unescaped text

Example ​

ts
const result = unescapeHtml('"<Hello&World>"')

assert(result === `"<Hello&World>"`)

A Streaming Video Technology Alliance project.