Why does PHP function strip_tags() removes data that is not tags? How to avoid this?
<p>This code:</p>

<pre><code>$input = 'I love &lt;3 PHP!';
echo strip_tags($input);
</code></pre>

<p>Outputs:</p>

<pre><code>I love 
</code></pre>

<p>Is there a PHP function (or anyone's custom function) which would remove only tags (that means properly closed tags), not everything preceded by <code>&lt;</code> ?</p>
