I have a div in php(string) and I want to get the content.
for example:
Use the php DomDocument class. http://www.php.net/manual/en/class.domdocument.php
$dom = new DOMDocument(); $dom->loadHTML($html); $xpath = new DOMXPath($dom); $divContent = $xpath->query('//div[id="product_list"]');