Randy
The following should do it.
<cfhttp method="get" URL="http://apple.excite.com/">
<cfset cleanText = ReReplace(CFHTTP.FileContent, "<[^>]*>", "", "ALL")>
<cfoutput>#cleanText#</cfoutput>
1. Suck in a URL with CFHTTP (could read a file on your server with CFFILE)
2. Use a regexp to eliminate all occurrences of <...>
HTH
Dick
At 6:42 AM +0000 2/7/01, Randy Pringle wrote:
>We need to parse an HTML page, and remove all HTML tags. Could someone
>please explain how to do this in ColdFusion? There is a component in ASP
>that allows this sort of thing, but we prefer to do it ColdFusion.
>
>Any help would be greatly appreciated.
>
>Randy Pringle & Khalifa Al-Kuwari
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists