title: PHP: How to strip HTML tag while allowing < and >
body: <p><strong>Question:</strong> How do I strip HTML tags but allow the greater and less-than sign using PHP?</p>
  
  <p>If I used PHP's <code>strip_tags()</code> function, it doesn't quite work:</p>
  
  <pre><code>$string = '&lt;p&gt;if A &gt; B&lt;/p&gt;'
  echo strip_tags($string);  // if A B
  // but I want to output "if A &gt; B"
  </code></pre>
  
  <p><strong>UPDATE</strong></p>
  
  <p>Basically, I only want to allow/display plain text.</p>