Re: Stripping HTML selectively?

From: Date: Sun, 04 Mar 2001 05:43:10 +0000
Subject: Re: Stripping HTML selectively?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-42492@lists.php.net to get a copy of this message
Thanks Brian, I have tried the allowable tags, but I need to remove the ATTRIBUTES of a tag, not the tag itself. STRIP_TAGS totally removes the tag, and ALLOWABLE_TAGS lets the tag be. WHat I wish to do is let the main tag be but remove its attributes, as follows: Original text: <font class="something" style="....">Hi!</font> Parsed text: <font>Hi!</font> Thanks/erick --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.230 / Virus Database: 111 - Release Date: 25-Jan-01

« previous php.general (#42492) next »