JavaScript unescape() Function

JavaScript unescape() Function

The unescape() function decodes an encoded string.
Tip: Use escape() to encode strings.

Syntax

unescape(string)

Example

<script language="JavaScript">

var str="Need tips? Visit Paktutorial!";
var str_esc=escape(str);
document.write(str_esc + "<br />");
document.write(unescape(str_esc));

</script>

Output

Need%20tips%3F%20Visit%20Paktutorial%21
Need tips? Visit Paktutorial!
DOWNLOAD SOLUTION HERE