title: Javascript - replace HTML code
body: <p>I'm trying to replace some codes in JavaScript. Somehow, this doesn't work.</p>
  
  <pre><code>var name = "check &amp; ' &amp;#92;&amp;quot;";
  alert(name);
  alert(name.replace(/[&amp;quot;]/g, "\""));
  alert(name.replace(/[&amp;#92;]/g, "\"));       
  </code></pre>
  
  <p>What am I doing wrong?</p>