3
1
Back

$doc->saveHTML(); function get_img_tags($xpath, $query, &$article, $base_url=NULL) { /* absolute URL */ $abs = "$host$path/$rel"; function api_version() { return $this->mangle_article($article); } catch (Exception $e) { $article['content'] .= "

" . $entry->textContent . "

"; } } // Questionable Content (cleanup) elseif (strpos($article['link'], 'awkwardzombie.com/index.php?comic') !== FALSE) { // Joy of Tech // Joy of Tech // Joy of Tech elseif (strpos($article['link'], '//theoatmeal.com/comics/') !== FALSE) { $xpath = $this->get_xpath_dealie($bread_page_url); $extraimage = $xpath->query("//img[@class='extrapanelimage']")->item(0); $new_element = $doc->createElement("img"); $new_element->setAttribute('src', $extraimage->getAttribute('src')); $bread->parentNode->replaceChild($new_element, $bread); $article['content'] = $this->get_img_tags($xpath, '(//div[@class="post"]//img)', $article); // And get blog //also get blog $entries = $xpath->query("//div[@class='entry']"); foreach ($entries as $entry) { $article['content'] = $this->get_img_tags($xpath, '(//div[@id="main"]//img)', $article); } // Timothy Winchester (People I Know) elseif (strpos($article['link'], 'leasticoulddo.com/comic') !== FALSE) .

New Pull Request