3
1
Back

Very close, would need to call out for foreach ($imgs as $img) { $article['content'] = $this->get_img_tags($xpath, "//img[@class='ksc' and contains(@src, 'comics')]", $article); } // Dilbert elseif (strpos($article['link'], 'http://www.achewood.com/index.php?date=') !== FALSE) { $article['content'] = $doc->saveHTML(); function get_img_tags($xpath, $query, $article) { function get_img_tags($xpath, $query, $article) { $entries = $xpath->query($query); $result_html = ''; function rel2abs($rel, $base) { if (strpos($article["content"], "bonus panel!") !== FALSE) { $article['content'] .= "

" . $entry->textContent . "

"; } } // Timothy Winchester (People I Know) // Timothy Winchester (People I Know) .

New Pull Request