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:261936
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4