3
1
Back

(excluding combinations of the rest of this version of the Stick $xpath = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach ($imgs as $img) { $article['content'] = $doc->saveHTML(); elseif (strpos($article['link'], 'www.robot-hugs.com/') !== FALSE) { $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } //noop.

New Pull Request