3
1
Back

Alt_textify($article, $doc = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ foreach ($imgs as $img) { $article['content'] = $doc->saveHTML(); function get_img_tags($xpath, $query, $article) { function get_img_tags($xpath, $query, $article) { $entries = $xpath->query("//span[@class='rss-content']"); // Wondermark (alt tag already present elseif (strpos($article['content'], 'invisiblebread.com/2') !== FALSE) { elseif (strpos($article['link'], 'qwantz.com/index.php?comic') !== FALSE) { // Three Panel Soul // Two Lumps elseif (strpos($article['link'], 'cad-comic.com/sillies/') !== FALSE) { //also.

New Pull Request