title: Javascript replace double quotes with slash
body: <p>I want to replace <code>"</code>  with <code>\"</code> with Javascript.</p>
  
  <p>I have:</p>
  
  <pre><code>text = text.toString().replace("\"", '\\"')
  </code></pre>
  
  <p>The result:</p>
  
  <pre><code>\\"
  </code></pre>