Remove html tags in a string but should display a<b in php
===

i have written code for removing html tags but it is not allowing to display a<b kind of strings. i should display strings like 2<3 or a<b.

$term="a<b";
echo "text--->".preg_replace('/(?:<|&lt;).+?(?:>|&gt;)/', '', $term);