JavaScript tutorial:
unescape method

 

Applies to: Global Object

The unescape method is use to decode String objects encoded with the escape method.

Syntax

unescape(charstring)

The charstring argument is a String object to be decoded.

Example

The unescape method returns a new String object that contains the contents of charstring. All characters encoded with the %xx hexadecimal form are replaced by their ASCII character set equivalents.

Characters encoded in %uxxxx format (Unicode characters) are replaced with the Unicode character with hexadecimal encoding xxxx.

See also: escape Method, String Object