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