Labels Milestones
Back$doc->createElement("img"); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comic-wrap']//img[@class='comic']", $article); } // Dead Philosophers Dead Philosophers elseif (strpos($article['link'], 'polyinpictures.com/comic/') !== FALSE) { $doc = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ if ($img->getAttribute('title')) { $article['content'] = $this->get_img_tags($xpath, '(//div[@class="post"]//img)', $article); $article['content'] .= "Bonus comic:" . $aftercomic . "
"; // only keep everything starting at the first