title: How do I decode a string with escaped unicode?
body: <p>I'm not sure what this is called so I'm having trouble searching for it. How can I decode a string with unicode from <code>http\u00253A\u00252F\u00252Fexample.com</code> to <code>http://example.com</code> with JavaScript? I tried <code>unescape</code>, <code>decodeURI</code>, and <code>decodeURIComponent</code> so I guess the only thing left is string replace.</p>
  
  <p>EDIT: The string is not typed, but rather a substring from another piece of code. So to solve the problem you have to start with something like this:</p>
  
  <pre><code>var s = 'http\\u00253A\\u00252F\\u00252Fexample.com';
  </code></pre>
  
  <p>I hope that shows why unescape() doesn't work.</p>