PHP DOMDocument :: loadHTML () [domdocument.loadhtml]: htmlParseEntityRef: aucun nom dans l'entité

Que j'essaie d'obtenir le "lien" éléments à partir de certaines pages web. Je ne peux pas comprendre ce que je fais mal. J'obtiens l'erreur suivante:

Gravité: Avertissement

Message: DOMDocument::loadHTML() [domdocument.loadhtml]:
htmlParseEntityRef: aucun nom de l'Entité, en ligne: 536

Nom de fichier: controllers/test.php

Numéro De Ligne: 34

La ligne 34 est le suivant dans le code:

      $dom->loadHTML($html);

mon code:

            $url = "http://www.amazon.com/";

    $ch = curl_init();

    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10);
    if($html = curl_exec($ch)){

        //parse the html into a DOMDocument
        $dom = new DOMDocument();

        $dom->recover = true;
        $dom->strictErrorChecking = false;

        $dom->loadHTML($html);

        $hrefs = $dom->getElementsByTagName('a');

        echo "<pre>";
        print_r($hrefs);
        echo "</pre>";

        curl_close($ch);


    }else{
        echo "The website could not be reached.";
    }

source d'informationauteur David