JavaScript: escape vs. unescape
<p>I saw some sites were using the JavaScript escape() and unescape() functions interchangeably.</p>

<p>Some used:</p>

<pre><code>document.write('&lt;img height="1" width="1" style="border-style:none;" alt="" src="..."/&gt;');
</code></pre>

<p>whereas, this was also pretty common (note: they first "escape" the string, then "unescape" it):</p>

<pre><code>document.write(unescape('%3Cimg%20height%3D%221%22%20width%3D%221%22%20style%3D%22border-style%3Anone%3B%22%20alt%3D%22%22%20src%3D%22...%22/%3E'));
</code></pre>

<p>The latter seems to achieve the same as the former, only using a longer way. Any differences in these two methods?</p>
