3
1
Back

* for a VC version. ** not a comic, just a borked RSS feed elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $matches[1]; } } // Dinosaur Comics Cleanup elseif (strpos($article['link'], 'awkwardzombie.com/index.php?comic') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article); // $article['content'] = $matches[1]; } } Pain Train (to get alt tags foreach($imgs as $img){ foreach ($imgs as $img) { $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } //noop } // Jesus & Mo elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { $doc = new DOMXPath($doc); } function get_img_tags($xpath, $query, $article, $base_url=NULL) { $img_attributes_whitelist = array('src', 'alt', 'title'); if (!$base_url){ $base_url.

New Pull Request