Labels Milestones
BackThat provide images and just need alt tags elseif (strpos($article['link'], 'girlswithslingshots.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'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // Breaking Cat News elseif (strpos($article['link'], 'cad-comic.com/sillies/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-img']//img", $article); // Doghouse Diaries, which has broken alt tags textified. } //Sites that provide images and just need alt tags textified. } //Sites that provide images and just need alt tags foreach($imgs as $img){ $article['content'] .= $aftercomic; $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } if(preg_match("@.*(
New Pull Request