I'm using Php Html Dom Parser to get the elements. But it's not getting and element with inner text. See the code below;
$html = file_get_html($currentFile);
foreach($html->find('style') as $e){
echo $e->plaintext;
}
I have this type of on page CSS code
<style type="text/css">
ul.gallery li.none { display:none;}
ul.gallery { margin:35px 24px 0 19px;}
</style>
<!--<![endif]-->
<style type="text/css">
body { background:#FFF url(images/bg.gif) repeat-x;}
</style>
and I want to get each and element with inner text.
Thanks