3
1
Back

Point at the center, then to point at the first if(preg_match("@.*(get_xpath_dealie($article['link']); $article['content'] = preg_replace("@@", '', $article['content']); } // Timothy Winchester (People I Know elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comicbody"]//img)', $article) . $article['content']; } // Timothy Winchester (People I Know) elseif (strpos($article['link'], 'jesusandmo.net') !== FALSE) { // Eat That Toast bog-standard example // Penny Arcade if (strpos($article['link'], 'eatthattoast.com/comic/') !== FALSE) { elseif (strpos($article['link'], 'https://web3isgoinggreat.com/single/') !== FALSE) { if (parse_url($rel, PHP_URL_SCHEME) != '' || substr($rel, 0, 2) == '//') { return $this->mangle_article($article); } function get_img_tags($xpath, $query, $article){ $new_src = $this->rel2abs($orig_src, $article['link']); $entry->setAttribute('src', $new_src); $result_html .= $entry->ownerDocument->saveXML($entry); Added BCN, Something Positive // Timothy Winchester (People I Know) $article['content'] .= "" . $entry->textContent . "

"; } } } /* replace '//' or '/./' or '/foo/../' with .

New Pull Request