unescape() [FF, IE 3]

Decodes a string encoded with escape(). Example:

var decoded_string = unescape("a%20string%20safe%20for%20cookies");

The variable decoded_string now holds the string "safe for cookies" because the unescape function replaces each %20 with a space. See "escape() [FF, IE 3]" on page 436 for more information.

Get The Book of JavaScript, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.