Spacing"/> query("//span[@class='rss-content']"); foreach ($entries as $entry) { elseif (strpos($article["link"], "eatthattoast.com/comic/") !== FALSE && strpos($article["title"], "Comic:") !== FALSE) { $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ foreach ($imgs as $img) { if ($doc === NULL) { foreach ($imgs as $img) { if (preg_match("@.*?(.*)@", $article['content'], $matches)) { $img = preg_replace("@width=\"\d+\"@", "", $img); $article['content'] = $this->get_img_tags($xpath, "//div[@id='imgdiv']//img", $article); // Scenes From A Multiverse (to get alt tags textified. } $article = $this->alt_textify($article); $entries = $xpath->query("//div[@id='signoff-wrapper']"); } //Sites that provide images and just need alt.