Try the following function form CFLib.org - called safetext it seems designed to remove nasty HTML tags - however you can adapt it heavily to remove whatever HTML you need to.
I have :-) http://www.cflib.org/udf.cfm?id=56 Chris -----Original Message----- From: Sean Daniels [mailto:[EMAIL PROTECTED]] Sent: 31 December 2002 18:52 To: CF-Talk Subject: Call to the regex ninja clan Sending this on behalf of a colleague. I unfortunately do not belong to the regex ninja clan either. Begin forwarded message: > I have some text being sent back from a flash rich text editor. It > works > great but flash autogenerates some nasty html that could potentially > really screw things up... > > So.. here is the challenge, I need to remove all the following tags: > > <font></font> | <p></p> | <textformat></textformat> > > ..and they may have additional attributes. Thanks in advance any who > can > solve this brain tickler, > Brian ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com