title: How to remove only html tags in a string?
body: <p>I have written code for removing HTML tags, but it is also removing <code>a&lt;b</code> type of strings. I want it to not to remove strings like <code>2&lt;3</code> or <code>a&lt;b</code>.</p>
  
  <pre><code>$term="a&lt;b";
  echo "Text is---&gt;".preg_replace('/(?:&lt;|&amp;lt;).+?(?:&gt;|&amp;gt;)/', '', $term);
  </code></pre>
  
  <p>How do I remove html tags in a string, without removing LT or GT?</p>