title: Turn script html tag into plain text
body: <p>Well, I want to get HTML that is inside pre tags, and turn it into a readable text!</p>
  
  <p>My code is working for most things:</p>
  
  <pre class="lang-js prettyprint-override"><code>var pre = document.getElementsByTagName("pre");
  
  for(i in pre) {
      pre[i].textContent = pre[i].innerHTML;
  }
  </code></pre>
  
  <p>But it doesn't work for script tags, which are loading before they turned into text.
  I don't really want to use a whole library to do this, if it is even possible.</p>
  
  <p>E.g. the following alert will be shown despite being within a <code>&lt;pre&gt;</code> tag.</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;pre&gt;
      &lt;script&gt;window.alert("Test!");&lt;/script&gt;
  &lt;pre&gt;
  </code></pre>
  
  <p>Any suggestions?</p>