views:

1138

answers:

0

Possible Duplicate:
Robust, Mature HTML Parser for PHP

I am looking for a good way to parse and modify html documents server side in php. Beautiful soup and hpricot look like very good tools but they are not available for php. Are there any good libraries that can do this in php? Tidy appears to be partially what I am looking for, but it doesn't look like you can use selectors, etc in tidy.