I just finished rewriting my ancient tagstripper custom tag into a UDF.

It will strip HTML tags, optionally preserving a list of specified tags, 
or simply strip only a list of specified tags.

ie, #tagStripper(myString,"preserve","link,script,embed,object")# would 
remove the specified tags but preserve all other tags, while 
#tagStripper(myString,"strip","b,i,a")# would strip all tags EXCEPT the 
specified tags.

Please take a look at my code and let me know if you see any potential 
issues with it.

http://www.opensourcecf.com/1/2006/11/Using-coldfusion-to-strip-some-or-all-HTML-tags-from-a-string.cfm
or
http://tinyurl.com/ym3jsv

Thanks.

Rick Root

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:261917
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