Re: Processing a fetched external page

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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?

_____________
Doesn't have much to do with databases, you may want to ask on php-general
for more help...but if you're looking for elements on a page then you may
want to parse the page for the specific elements with regular expressions
seeking out those individual tags.  or you can take in the entire page as a
string and use strip_tags.

http://www.php.net/strip_tags

HTH
jeff
___________

Any suggestions appreciated,

Don

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux