How to replace content in Javascript
<pre><code>function show(question,answer)
{        
  document.getElementById("question").innerHTML = question;       
  document.getElementById("answer").innerHTML = answer;               
}
</code></pre>

<p>I need to replace single quotes <code>'</code> with <code>\'</code> in question and answer.</p>