Re: Another q, this time eregi_replace

From: Date: Mon, 15 Jan 2001 08:07:41 +0000
Subject: Re: Another q, this time eregi_replace
Groups: php.general 
Request: Send a blank email to php-general+get-34583@lists.php.net to get a copy of this message
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 webpharmacy@brokenhill.net 191 Grand Street, Brooklyn NY 11211 718.599.4893 ______________________________________

« previous php.general (#34583) next »