It would also be good for allowing blog comments to only have small html
tags. It's a cool UDF to be sure.

So, are you saying that the attribute value IS going to be an issue, or
it is not? Sorry, I was just a bit confused if you needed any more
ideas?


......................
Ben Nadel
Certified Advanced ColdFusion MX7 Developer
www.bennadel.com
 
Need ColdFusion Help?
www.bennadel.com/ask-ben/

-----Original Message-----
From: Rick Root [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 28, 2006 5:32 PM
To: CF-Talk
Subject: Re: UDF inspection, please!

Ben Nadel wrote:
> Sorry for the wild goose chase regarding the ".". I think I never 
> learned it thoroughly. Its good to know.

Good testing sometimes involves wild goose chases :)

> Yeah, regular expressions are awesome... Except sometimes when you 
> have to them to NOT do something, EXCEPT IF. I agree, go with it. Just

> document that it might be an issue. IMO, not worth fixing something 
> that's not an issue yet.

I removed the comment stripping capability, since it's really not
necessary and simplifies the code.

There would still be an issue with quoted attributes containing >
characters, but unwanted tags would still be stripped.

Like this string:

        <embed value="><embed ...>"> foo

Would be left with

"> foo

Instead of the desired

  foo

This whole thing came up so I could strip embed, object, applet, link,
and script tags out of HTML emails being viewed in a webmail interface.

Rick



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:261937
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to