3
1
Back

XKCD (alt tags we don't need to call out for foreach ($imgs as $img) { $article['content'] = $this->get_img_tags($xpath, "//div[@class='comic-wrap']", $article); //Sites that provide images and just need alt tags textified. Elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $aftercomic = $this->get_img_tags($xpath, '(//img[@id="main-comic"])', $article); } // Dead Philosophers Added BCN, Something Positive } if ($rel[0]=='#' || $rel[0]=='?') { return $this->mangle_article($article); } function get_img_tags($xpath, $query, $article){ $entries = $xpath->query("//span[@class='rss-content']"); foreach ($entries as $entry){ $article['content'] .= "

" . $entry->textContent . "

"; } } //Sites that provide images and just need alt tags textified. $article['content'] .= "

" . $entry->textContent . "

"; } } // Two Lumps elseif (strpos($article['link'], '//theoatmeal.com/comics/') !== FALSE) .

New Pull Request