HTML DOM Parser, only get the data inside the DIV, and not all the rest from the start div
<p>I've started using the PHP HTML Dom Parser and still learning it. I've got a problem though, I'm trying to obtain data from a video website, within a certain div tag. I've managed to fix it, but a small problem still remains; it catches all the data from the start of that specific div tag. I would probably need to add a small line of code, something like "[/div]" or something, but I'm completely out of any further ideas. </p>

<p>Here's my code that you can take a look at;</p>

<pre><code>foreach($html-&gt;find('div[class=video]') as $key =&gt; $info)
{
echo $info-&gt;innertext;
}
</code></pre>

<p>So, how can I fix this? So it only gets the content inside that div, and not the rest of the file?</p>

<p>Thanks!</p>
