title: JQuery Rewrite HTML to Text
body: <p>I have a 'preview' written in JQuery, which when I write in a textarea, it is written in HTML so that I can see what the output will look like before submitting a post.</p>
  
  <p>One problem though, is that while the main behaviour I want is for the preview to be written in HTML (so that i can see images in real-time), I need to configure it so any text written in the textarea, within &lt;'code'> tags, should be written as text, instead of HTML. </p>
  
  <p>Can this be done?</p>
  
  <p>Thanks in advance guys!</p>
  
  <p>To give an example:</p>
  
  <pre><code>This is text, displayed as text. The following image is nice: &lt;img src="" /&gt;
  Below is the code to display this image:
  &lt;code&gt;&lt;img src="" /&gt;&lt;/code&gt;
  </code></pre>