Mega Code Archive

 
Categories / JavaScript DHTML / Data Type
 

String escape

<html> <body> <button onclick="alert(escape('Hello World!'));"> Escape function: escape('Hello World!') </button> <button onclick="alert(unescape('Hello%20World%21'));"> Unescape function: unescape('Hello%20World%21') </button> </body> </html>