3
1
Back

Weedonwantcha elseif (strpos($article['link'], 'leasticoulddo.com/comic') !== FALSE) { $doc = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ foreach ($imgs as $img) { $article['content'] = $img_tag . $article['content']; } // Wondermark (alt tag already present foreach($imgs as $img){ if ($img->getAttribute('title')) { $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } } // Joy of Tech.

New Pull Request