title: Remove "\" from strings in javascript
body: <p>I'm having some trouble removing slashes in Javascript.</p>
  
  <p>I've got some HTML coming through via JSON and need to get rid of the escaping slashes.</p>
  
  <p>Here's what I have now, but it doesn't seem to work - at all...</p>
  
  <pre><code>obj.embed_code = obj.embed_code.replace(/\\/g, '');
  </code></pre>
  
  <p>The HTML inside that object is an embed iframe from YouTube, but since it's got the escaped quotes I just end up with an iframe that's got a 404 page in it.</p>
  
  <p>What would be the correct way to do this?</p>
  
  <p>Here's an example of what the output looks like...</p>
  
  <pre><code>&lt;iframe width=\\\"420\\\" height=\\\"315\\\" src=\\\"http:\/\/www.youtube.com\/embed\/MD61itbPNEY\\\" frameborder=\\\"0\\\" allowfullscreen&gt;&lt;\/iframe&gt;
  </code></pre>
  
  <p>In addition, here's the page where the JSON is being pulled from so you can see what it looks like raw...</p>
  
  <p><a href="http://bit.ly/UxuvfL" rel="nofollow">http://bit.ly/UxuvfL</a></p>