That depends. Do you mean just take it out completely or have it displayed
as text?

To take out all html tags you can use a regular expression like...
<cfset cleantext = rereplace(queryname.column, "<[^>]*>", "", "all") />

To just make the html display as normal text just replace < with &lt;
<cfset cleantext = replace(queryname.column, "<", "&lt;", "all") />

Good luck


-----Original Message-----
From: Mark Flewellen [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 30, 2007 10:09 PM
To: CF-Talk
Subject: Strip HTML from a Collection

How do people on this list deal with stripping html a column in a query
prior to loading the query into a coldfusion collection?



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7
The most significant release in over 10 years. Upgrade & see new features.
http://www.adobe.com/products/coldfusion?sdid=RVJR

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276587
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