<cfhttp url="" />
<cfset text = Rereplace(cfhttp.filecontent, "<[^>]*>", "", "all") />

That'll rip all non-HTML text out of it for you, assuming the HTML is well
formed (no extraneous angle brackets).

Cheers,
barneyb

> -----Original Message-----
> From: brobborb [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 19, 2004 1:49 PM
> To: CF-Talk
> Subject: Re: Extracting Text From web page
>
> Just the text.  no HTML stuff :)
>   ----- Original Message -----
>   From: Matthew Walker
>   To: CF-Talk
>   Sent: Thursday, February 19, 2004 3:42 PM
>   Subject: RE: Extracting Text From web page
>
>
>   When you say text do you mean all the HTML markup of the
> page or do you mean
>   only the content, without the navigation elements etc.?
>
>   -----Original Message-----
>   From: brobborb [mailto:[EMAIL PROTECTED]
>   Sent: Friday, 20 February 2004 9:36 a.m.
>   To: CF-Talk
>   Subject: Extracting Text From web page
>
>   Hey guys I'm kinda a newbie at CFHTTP n stuff.  How do I
> extract the text
>   from a web page and put it into a variable? (using a URL)  
> like let's say I
>   want to get the text from www.example.com/hehe/index.html
>
>   Thanks!
>
>     _____
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to