Remove all HTML except breaks and paragraphs...
Posted: Mon Aug 07, 2006 6:48 pm
How do I remvoe all HTML except breaks and paragraph tags from a string?
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
echo strip_tags($text, "<br>,<p>");