title: how to disable script tags in a html text?
body: <p>I have a <code>div</code> with <code>id=content</code>, and I want to change it's innerHtml to a string variable <code>markup</code>, but I want to disable script tags.</p>
  
  <p>For example, if </p>
  
  <pre><code>markup='&lt;b&gt;Bold text here &lt;/b&gt;&lt;i&gt;&lt;script&gt;alert("JS will be treated as normal text")&lt;/script&gt;&lt;/i&gt;';
  </code></pre>
  
  <p>The <code>content</code> div should be</p>
  
  <blockquote>
    <p><strong>Bold text here</strong> <em>&lt;script>alert("JS will be treated as normal text")&lt;/script></em></p>
  </blockquote>
  
  <p>I can't use <code>innerHTML</code> since it'll run the alert box,and I can't use <code>innerText</code> because the other tags will be displayed as normal text.</p>
  
  <p>I searched for this problem and found a lot of regix expressions.I don't know a lot about regix, but all of the expressions I found were to remove all tags, not to disable a tag.</p>
  
  <p>I don't want to use jquery ,even though I tried to use <code>.vla()</code> and <code>.text()</code> and didn't work. But now I want to use js only.</p>
  
  <p>I also want it to be able to handle any valid variation of the script tag, including: <code>&lt;Script&gt;,</code> <code>&lt;sCrIPt&gt;</code>, <code>&lt;script type= "text/javascript"&gt;</code>, and <code>&lt;/script &gt;</code></p>