3
1
Back

Secondary Licenses", as defined elseif (strpos($article['link'], 'www.geekculture.com/joyoftech/') !== FALSE) { $doc = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ $article['content'] .= "

" . $entry->textContent . "

"; $article['content'] .= "

" . $entry->textContent . "

"; } } // there's both alt and title texts, they're both different, use both. $alt_element = $doc->createElement("i", $title_text); $para_element->appendChild($title_element); } Clean up code formatting; added a.

New Pull Request