]
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
You can use what the previous guy said - and replace or escape the
html as you want when outputting your search. You may also want to
consider this post:
http://ray.camdenfamily.com/index.cfm/2007/4/17/Quick-example-of-cleaning-up-Verity-results
On 4/30/07, Mark Flewellen [EMAIL PROTECTED]
That too :-)
Cheers,
Previous Guy
-Original Message-
From: Raymond Camden [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 01, 2007 7:05 AM
To: CF-Talk
Subject: Re: Strip HTML from a Collection
Actually for #2, you want to just use htmleditformat
cfset cleantext = htmlEditFormat
Thanks guys what I was wanting was to clean it before it was indexed though,
and the only way i can think of doing this is to strip the query using regex
then rebuild the query and load this into cfindex. Would this be correct way to
deal with this problem?
How do people on this list deal with stripping html a column in a query prior
to loading the query into a coldfusion collection?
~|
Create robust enterprise, web RIAs.
Upgrade integrate Adobe Coldfusion MX7 with Flex 2
= 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
The problem I am having is I load the data in including the html content via
the query attribute in cfindex. When I output a summary sometimes it gets cut
of through a tag.
This is what I do to index
cfindex
collection=news
action=refresh
type=custom
query=qry_NewsList
key=newsid
title=title
7 matches
Mail list logo