I try to do this:
$html = file_get_html ( 'http://www.ebay.com/cln/explorer/_ajax?page=1&ipp=16&catids=37958' );
foreach ( $html->find ( 'div[class="connection"]' ) as $collection ) {
echo "found collections: ".count($collection);
Problem is, the returned file from the AJAX request contains elements encoded like:
<div class=\"collection\" data-collectionid=\"75336256016\">
<div class=\"header\">
Can anyone please help me to transform all the \"
in the DOM object back to the normal "
.
Or change the ->find
command to find the right element.
Thanks so much!