title: How do I escape some html in javascript?
body: <p>Given the text </p>
  
  <pre><code>&lt;b&gt;This is some text&lt;/b&gt;
  </code></pre>
  
  <p>I want to write it to my page so that it shows up like this:</p>
  
  <p><code>&lt;b&gt;This is some text&lt;/b&gt;</code></p>
  
  <p>and not like this</p>
  
  <p><b>This is some text</b></p>
  
  <p>using <code>escape("&lt;b&gt;This is some text&lt;/b&gt;")</code> gives me this lovely gem in firefox</p>
  
  <pre><code>%3Cb%3EThis%20is%20some%20text%3C/b%3E
  </code></pre>
  
  <p>not exaclty what I'm after. Any ideas?</p>