3
1
Back

"

"; } } $entries = $xpath->query("//div[@id='blarg']/div[last()]"); foreach ($entries as $entry) { // Robot Hugs elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { // Two Lumps elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); // Doghouse Diaries, which has broken alt tags textified. Function rel2abs($rel, $base) { if (preg_match("@.*?(.*)@", $article['content'], $matches)) { $img = preg_replace("@width=\"\d+\"@", "", $img); $article['content'] = preg_replace('#(width|height)="150"#', '', $article['content']); if (preg_match("@.*?(.*)@", $article['content'], $matches)) { $img = $matches[1]; $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); // And get blog entry $article['content'] .= "

" . $entry->textContent . ""; if (ADD_IDS) { .

New Pull Request