Stripping HTML selectively?
| From: | Erick Papadakis | Date: | Sat, 03 Mar 2001 05:22:39 +0000 |
| Subject: | Stripping HTML selectively? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-42426@lists.php.net to get a copy of this message | ||
Hello,
need some help. i need to take an HTML file that is written by a user in a
very bad format, for instance:
<font class="sometihng" style="....">Hi!</font>
and get the following:
<font>Hi!</font>
i tried to look at "strip_tags" but then it only returns me:
Hi!
thanks in advance/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