I use the HTML DOM to get the content:
$contener = $html->find(\'div.classname\', 0);
This works if I have only one classname or multiple classnames with differ