
January 5th, 2005, 08:53 AM
|
|
Contributing User
|
|
Join Date: Jul 2004
Posts: 116
Time spent in forums: 1 Day 14 h 11 m 59 sec
Reputation Power: 5
|
|
|
Please help me Strip ...
... out HTML. The search feature for the site returns HTML code in the first 100 characters of the Summary. Then the results get all messed up because sometimes image HTML is returned, such as <img src="images/blah ....., it's looking for the image but since the tag isn't completed, a broken image displays. What I'd like to do is just output the results Summary as plain text, or just ignore any HTML tags.
Current code is as follows for Summary:
Code:
<cf_replacemappingvars body = "#output#">
<cfif custom1 IS NOT '#www_ip_mapping#/glossary/showContent.cfm?subtopicid='>
<font size="-1" face="arial">#mid(output,1,100)#...</font>
</cfif>
Found this, but not exactly sure how to implement:
Code:
<cfset that=REReplaceNoCase(this,"<[a-z/][^>]*>","","All")>
Where does the #output# need to be placed and are there other VARs that need to be set up?
Is there something else that can be done?
Does any of this make sense?
TIA ...
|