CodeIgniter Forums
HTML DOM parser - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: HTML DOM parser (/showthread.php?tid=40617)



HTML DOM parser - El Forum - 04-13-2011

[eluser]alex michaud[/eluser]
Hi everyone,

I wrote a simple HTML DOM parser, very similar to simple html dom, php query and query path. It's lightweight and very fast, much faster then simple html dom, yet it's easy to use. If you need a HTML parser, give it a try, feedback is welcome.

HTML DOM


HTML DOM parser - El Forum - 04-05-2012

[eluser]playaz[/eluser]
This looks like an awesome class!!

I will be trying this out on some projects soon! Smile


HTML DOM parser - El Forum - 04-13-2012

[eluser]xtarx[/eluser]
seems like a good one but can you post some example from the begining , i mean from parsing from the URL. since i didnt know how to grab html from url using your libary ..

thanks in advance


HTML DOM parser - El Forum - 04-13-2012

[eluser]cPage[/eluser]
Code:
$this->page->set_html('h2','titre','Informations');
foreach($this->db->data['textes'] as $cle=>$valeur)
{
  $this->page->set_html('h4',$valeur['titre']);
  $this->page->set_html('p',$valeur['texte']);
}

$this->html_dom->loadHTML($this->page->create_html());

;-)