Visit Mozilla.org

DOM:window.unescape

From MDC

« Gecko DOM Reference

Contents

[edit] Summary

Decodes a value that has been encoded in hexadecimal (e.g., a cookie).

[edit] Syntax

regular = window.unescape(escaped)
  • regular is the decoded string.
  • escaped is the encoded string.

[edit] Example

alert(unescape("%5C")); // displays "\"

[edit] Notes

See also escape, decodeURIComponent.

[edit] Specification

DOM Level 0. Not part of any standard. Mentioned in a non-normative section of ECMA-262.