HTML Source Code:
<div id="ctl00_ContentPlaceHolder_Middle_RatingSummary1_Rating1_RatingPanel">
<img id="ctl00_ContentPlaceHolder_Middle_RatingSummary1_Rating1_RatingImage" title="(2.5 / 5) : Above Average" src="../../../../../images/net/common/stars/transparent/2.5.png" alt="(2.5 / 5) : Above Average" style="border-width:0px;" />
<span id="ctl00_ContentPlaceHolder_Middle_RatingSummary1_Rating1_RatingText" class="text med strong">(2.5 / 5) : Above Average</span>
<a id="ctl00_ContentPlaceHolder_Middle_RatingSummary1_Rating1_RatingHelp" class="help"></a>
I want Output like this:
(2.5 / 5) : Above Average
I tried it, but not Getting it:
Php code:
$ratings = $html->find('div[id=ctl00_ContentPlaceHolder_Middle_RatingSummary1_Rating1_RatingPanel] span')->outertext;
echo "$ratings[0]";
$html? what class etc.$htmlclass/object? Also: I'm not sure if you just omitted it, but did you close thedivtag?