I am using codeigniter. I guess it doesn\'t matter which php framework I am using.
But before I write my own class is there another that has already been written tha
You should have a look at this class: PHP Simple HTML DOM it works this way:
include('simple_html_dom.php');
$html = file_get_html('http://www.codeigniter.com/');
echo $html->find('title', 0)->innertext; // get
echo "";
foreach($html->find('meta') as $element)
echo $element->name . " : " . $element->content . '
'; //prints every META tag
echo "";