title: Strip only valid html
body: <p>I'm trying to strip HTML tags from a piece of text. However the trouble is that whatever I use - regex, strip_tags etc.. Comes up across the same problem: It will also strip text which is not HTML but looks like it.</p>
  
  <pre><code>Some &lt;foo@bar.com&gt; Content--&gt; Some Content
  Some &lt;Content which looks like this --&gt; Some 
  </code></pre>
  
  <p>Is there a way I can get around this?</p>