3
1
Back

} $entries = $xpath->query("//div[@id='signoff-wrapper']"); // Pain Train (to get alt tag) // Pain Train alt tag, Alice Grove (get bigger image // $xpath = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ if ($img->getAttribute('title')) { $article['content'] .= "

" . $entry->ownerDocument->saveXML($entry) . "

"; } } } // Cyanide & Happiness // Cyanide & Happiness.

New Pull Request