Re: Processing a fetched external page

From: Date: Thu, 18 Mar 2004 19:00:34 +0000
Subject: Re: Processing a fetched external page
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-33519@lists.php.net to get a copy of this message
Donovan Hutchinson wrote:
I'm working on a project that takes the content of a URL and does stuff with the content. I've managed to extract the target url's html, and am using str_replace to fix links, stylesheets etc. However, i'm stumped when it comes to processing the text content. Would anyone know how to isolate displayed text (anything in the body, paragraph text, headings etc) and then manipulate this text on a word by word basis? Sure... use strip_tags()/fgetss() and then some regexps (preg_replace()) to clear up any remaining cruft. If you want, I can post you my own brute-force "get all text from a webpage" script :)
Bruno Ferreira --- [This E-mail scanned for viruses by Declude Virus]

« previous php.db (#33519) next »