From http://www.w3schools.com (Copyright Refsnes Data)
JavaScript Functions
The escape() function encodes a string.
This function makes a string portable, so that it can be transmitted across any network to any computer that supports ASCII characters.
This function encodes special characters, with the exception of: * @ - _ + . /
| escape(string) |
| Parameter | Description |
|---|---|
| string | Required. The string to be encoded |
Tip: Use unescape() to decode strings.
Note: The escape() function should not be used to encode URIs. Use the encodeURI() function instead.
ExampleEncode a string:
The output of the code above will be:
Try it yourself » |
JavaScript Functions
From http://www.w3schools.com (Copyright Refsnes Data)