Remove all HTML except breaks and paragraphs...
Moderator: General Moderators
Remove all HTML except breaks and paragraphs...
How do I remvoe all HTML except breaks and paragraph tags from a string?
http://de2.php.net/striptags might help.
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
Look in Useful Posts for a slightly smarter strip_tags()
Thanks. This si what I go to work:
Code: Select all
echo strip_tags($text, "<br>,<p>");