I love how easily I can traverse an HTML document with jQuery, and I’d love to be able to do it in PHP. There are a few classes, but the PHP binding for Tidy seems to be where it’s at. The Zend dev pages make it look that way, anyway.
Related:
Posted March 3, 2008 by Casey
Categories: Dispatches, Technology. Tags: dom, html, parse, php, Tidy, web development.
3 Comments
Comments RSS
TrackBack Identifier URI
Leave a comment
User contributed tags for this post:
time passing quote (37) - php parse html (27) - php html parser (23) - php dom html (21) - php html dom (19) - PHP Simple HTML DOM Parser (18) - php parse html dom (12) - php traverse dom (10) - php html parse (8) - parse (8) - php dom (8) - html parse php (7) - php dom parse html (7) - html parser php (7) - php html dom parser (6) - F (6) - www 89 dom (6) - php parsing html (6) - Parse html php (6) - php parse html with dom (6) - parse html (5) - WWW XXL COM (5) - dom php (5) - parser html php (4) - traverse DOM PHP (4) - php parser html (4) - html dom parser (3) - html dom php (3) - www.89.dom (3) - xnxx_com HTML document (3) - php parse bookmarks (3) - php dom parsing (3) - parsing html with php (3) - php parse dom (3) - ????????? ???? (3) - php parse (3) - php html dom parse (3) - parse html with php (3) - php parse html source (2) - parse html elements using php dom (2) - parse html with dom php (2) - php parsehtml (2) - php parse html document dom (2) - traverse dom jquery (2) - php dom html parser (2) - DOM HTML parser php (2) - php and the DOM (2) - parse html with php dom (2) - html parser class php (2) - php parsing html dom (2) - php parsear url (2) - parser html php class (2) - parse dom php (2) - php dom parser (2) - php 5 html dom traverse (2) - parse html tag php (2) - php dom html parser pdf (2) - php html to dom (2) - parsing HTML (2) - navigating the DOM with php (2) - php dom parse html sample (2) - simple html dom parser (2) - www,89,dom (2) - parser dom php (2) - parse html php DOM (2) - jquery parse html (2) - php parse html tag (2) - php parse dom html class (2) - php domdocument html parsen (2) - php parsing html tags (2) - parsing html php (2) - parse() php (2) - traversing html php (2) - traverse DOM (2) - php parse meta tags (1) - DOM php html parser (1) - php movable DOM (1) - php xhtml html parser (1) - dom php parse (1) - curl php dom examples (1) - php dom tag (1) - php parse html jquery (1) - using html dom in php (1) - parse html php4 (1) - php html mail (1) - parse pdf php (1) - html to PDF php parser (1) - how to prase a HTML in DOM (1) - php html dom class (1) - traverse tidy (1) - php parse page by class (1) - parsing html with dom library php -xml (1) - ?????? php (1) - parse html dom (1) - DOM Parser parsing HTML tags (1) - php google news parse (1) - class parser html php (1) - php traverse html document (1) - parsowanie DOM PHP (1) - php xhtml dom class (1) - php html parsing (1) - parsing blog html (1) - dom parse website (1) - DOMDocument parse html (1) - parse html comments (1) - DOM parser php (1) - php html tag parser (1) - traversing DOM php (1) - add html code dom php (1) - php traversing dom (1) - HTML DOM php classes CuRL (1) - traverse html php (1) - php4 html dom parser (1) - parse html php dom css (1) - php: parse HTML with DomDocument (1) - dom php traverse html (1) - parsing html using php & DOM (1) - php DOM parser HTML (1) - www'89.dom (1) - javascript parse website (1) - tidy php parse html (1) - tidy php (1) - www.89.dom. (1) - php using DOM to parse html (1) - how to traverse the dom in php (1) - php dom parsing html (1) - php dom html tags (1) - traverse dom element php (1) - php traversing through html (1) - .com.89.www. (1) - com.89.www (1) - parse html iphone (1) - traverse dom php html (1) - php4 parse html (1) - bookmarks parser php (1) - php DOM parser class (1) - tidy traverse (1) - class parse html page php (1) - PHP DOM HTML parsing (1) - out php-1 url (1) - parsing html in PHP4 (1) - parse html code wordpress (1) - php parse html elements (1) - php parse pdf (1) - php google search parser (1) - parsing html php dom (1) - simple html dom.php (1) - parsing html with dom php (1) - parsing html using domdocument php (1) - how to parse html in php (1) -
[...] MaisonBisson.com A bunch of stuff I would have emailed you about. « Parse HTML And Traverse DOM In PHP? [...]
Surely a nice way to cope with not strictly valid HTML Code. But: how would you do the traversing? Tidy does not offer very comfortable functions for navigating inside an HTMLs DOM.
An example: jQuery offers possibilities such as “find all elements of class xy and change their first child’s background colour to yellow”. How could anything like this be performed in PHP?
Cheers, Rude
Try
“PHP Simple HTML DOM Parser”
at
http://sourceforge.net/projects/simplehtmldom/