3
1
Back

(strpos($article['link'], 'https://web3isgoinggreat.com/single/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); elseif (strpos($article['link'], 'qwantz.com/index.php?comic') !== FALSE) { $article['content'] .= "

" . $entry->textContent . "

"; $article['content'] .= "
Alt: " . $article['id']; } return $article; } function mangle_article($article) { // only keep everything starting at the first // only keep everything starting at the first // only keep everything starting at the first if (preg_match("@.*()@", $article['content'], $matches)) { } function get_img_tags($xpath, $query, $article) { $entries = $xpath->query("//div[@id='blarg']/div[last()]"); foreach ($entries as $entry) { $article['content'] = $this->get_img_tags($xpath, '//td/img[contains(@src, "/comics/images.

New Pull Request