JavaScript » Functions » unescape

Syntax:
unescape(encodedstring)

The Function unescape is deprecated in Javascript 1.5.

 

The top-level function, unescape, decodes an encoded string argument that was created using the escape function.

The function searches for two and four digit hexidecimal escape sequences and replaces them in the string with their single character Latin-1 equivalent. For example, %3B signifies a semicolon.

Examples

Code:
document.write(unescape("Miss%20Piggy%20loves%20Kermit%21"))
Output:
Miss Piggy loves Kermit!