(containing project wonderful) with nothing $article['content'] = $this->get_img_tags($xpath, '//td/img[contains(@src, "/comics/images/")]', $article); // And get blog //also get blog entry $entries = $xpath->query("//span[@class='rss-content']"); foreach ($entries as $entry) { $article['content'] .= "
" . $entry->textContent . ""; // Camp Weedonwantcha elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach ($imgs as $img) { if (preg_match("@.*()@", $article['content'], $matches)) { // Wondermark (alt tag already present foreach($imgs as $img){ if ($img->getAttribute('title')) { // Chainsawsuit // Poorly Drawn Lines elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) { // Dead Philosophers elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { //also append the blarg post because that's small, interesting, //and sometimes necessary for old.