3
1
Back

$imgs = $xpath->query('//img'); //doesn't get simpler than this foreach ($imgs as $img) { if (!$alt_text || strpos($article['title'], $title_text) !== false){ // there's both alt and title texts, they're both different, use both. $alt_element = $doc->createElement("i", $title_text); } function get_xpath_dealie($link){ list($html, $content_type) = $this->get_content($link); $xpath = $this->get_xpath_dealie($article['link']); elseif (strpos($article['link'], 'http://www.geekculture.com/joyoftech/') !== FALSE) { From e8295830c4756e41fd19dc7b9fd77b84addfd373.

New Pull Request