unescape() (Function/global)

Un-URL-escape a string.

Availability:

ECMAScript edition - 2
JavaScript - 1.0
JScript - 1.0
Internet Explorer - 3.02
Netscape version - 2.0
Opera browser - 3.0
Deprecated
Property/method value type:String primitive
JavaScript syntax:-unescape(anInputString)
Argument list:anInputStringA string to be converted

This function is the complement of the escape() function described in its own topic elsewhere.

A string that might have been escaped with the escape() function either locally or remotely, can be converted back to a normal unescaped string with this function.

This function has Unicode support in MSIE version 4.

As far as ECMAScript is concerned, this is superceded in edition 3 with a set of generalized URI handling functions. The JScript 5.5 documentation refers to this as a deprecated feature.

See also:Cast operator, decodeURI(), decodeURIComponent(), encodeURI(), encodeURIComponent(), escape(), Function property, Global object, URI handling functions

Property attributes:

DontEnum.

Cross-references:

ECMA 262 edition 2 - section - 15.1.2.5

ECMA 262 edition 3 - section - B.2.2