TIMEX TIMEX - 4 years ago 141
Javascript Question

What is the opposite of escape, in javascript?

Right now, it is displayed as:

how %26 why

It should be:

how & why

Answer Source

That would be unescape().

2017 Edit: I should note that unescape() has now been deprecated in favour of decodeURI() and decodeURIComponent(). Also, escape() has been deprecated in favour of encodeURI and encodeURIComponent() respectively.

At least they are fairly obvious opposites.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download