3
1
Back

$xpath->query('//img'); //doesn't get simpler than this foreach ($imgs as $img) { if (two_holes_type == "opposite") { } function get_xpath_dealie($link){ list($html, $content_type) = $this->get_content($link); $doc = new DOMDocument(); elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $orig_content = strip_tags($article['content']); $article['content'] = $img_tag . $article['content']; } // CTRL+ALT+DEL Sillies elseif (strpos($article['link'], 'amultiverse.com/comic/') !== FALSE) { $article['content'] .= "

" . $entry->textContent . "

"; } } } return $article.

New Pull Request