Reverses exactly the five escapes escapeHtml produces. This is not a general-purpose HTML entity decoder -- entities it doesn't produce ( , ©, numeric character references like A, etc.) are left untouched, by design.
©
A
Text to unescape.
The unescaped string, or an error message for invalid input.
unescapeHtml('Tom & Jerry');// 'Tom & Jerry' Copy
unescapeHtml('Tom & Jerry');// 'Tom & Jerry'
Reverses exactly the five escapes escapeHtml produces. This is not a general-purpose HTML entity decoder -- entities it doesn't produce (
,©, numeric character references likeA, etc.) are left untouched, by design.