JavaScript unescape() Function
JavaScript Global Functions
Definition and Usage
The unescape() function decodes an encoded string.
Tip: Use escape() to encode strings.
Syntax
| Parameter |
Description |
| string |
Required. The string to be decoded |
Browser Support

The unescape() function is supported in all major browsers.
Tips and Notes
Note: The unescape() functions should not be used to decode URIs. Use
decodeURI() functions instead.
Example
Example
Encode and decode a string:
<script type="text/javascript">
str="Need tips? Visit W3Schools!";
str_esc=escape(str);
document.write(str_esc + "<br />")
document.write(unescape(str_esc))
</script>
|
The output of the code above will be:
Need%20tips%3F%20Visit%20W3Schools%21
Need tips? Visit W3Schools! |
Try it yourself »
|
JavaScript Global Functions
Stylus Studio® 2010 XML Enterprise Suite raises the bar for productivity in XML development tools.
Millions of XML developers and data integration specialists turn to Stylus Studio's comprehensive and intuitive
XML toolset to tackle today's advanced XML data transformation and aggregation challenges.
|
- XML Pipeline Editor, Debugger and Code Generator
- DataDirect XML Converters
- XQuery Mapper, Editor, Debugger, and Profiler
- XSLT Mapper, Editor, Debugger, Designer, and Profiler
- Java and C# for .Net Code Generation
- XML Schema Designer With Documentation Generator
- XML Editor With Full XPath Integration
Download a free trial now
|
|