The inverse of escapethis method converts the HTML entities &, <, >, " and ' in string to their corresponding characters.
escape
&
<
>
"
'
string
Note: No other HTML entities are unescaped. To unescape additional HTML entities use a third-party library like he.
The string to unescape.
string Returns the unescaped string.
5.12.0
[[escape]], [[escapeRegExp]]
unescape('fred, barney, & pebbles')// => 'fred, barney, & pebbles' Copy
unescape('fred, barney, & pebbles')// => 'fred, barney, & pebbles'
The inverse of
escape
this method converts the HTML entities&
,<
,>
,"
and'
instring
to their corresponding characters.Note: No other HTML entities are unescaped. To unescape additional HTML entities use a third-party library like he.