Here's what you wrote, 01-01-14: >I'd like to be able to trim out some html tags, but only certain ones. I've >used eregi_replace before and have some replacements running on some >scripts... For this, I'd use strip_tags(). Example: strip_tags($contents, "<b>,<i>,<a>,<em>,<cite>") Will remove all tags from a user submission except Bold, Italics, Anchor tags, Emphasis, and Cite. Kristofer ps. Strip Tags is not available in PHP prior to 3.018 in the CGI version. I know it's available in the 3.015 version of the Apache module. -- ______________________________________ Kristofer Widholm Web Pharmacy [EMAIL PROTECTED] 191 Grand Street, Brooklyn NY 11211 718.599.4893 ______________________________________ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]