Function: unescapeHtml()
unescapeHtml(
str):string
Defined in: string/sanitize/index.ts:128
Decodes HTML entities to their character equivalents.
Parameters
str
string
The string containing HTML entities
Returns
string
The decoded string
Example
unescapeHtml('<script>')
// => '<script>'
unescapeHtml('"Hello"')
// => '"Hello"'
unescapeHtml('& < >')
// => '& < >'
See
escapeHtml - to encode special characters