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.
Optional
The string to unescape.
Returns the unescaped string.
0.6.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.