Labels Milestones
BackNot change this if you don't need to call out for foreach ($imgs as $img) { $article['content'] = preg_replace('#(width|height)="150"#', '', $article['content']); Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra useful for non-browser users else { // Invisible Bread (make the bread visible) elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { // Camp Weedonwantcha elseif (strpos($article['link'], 'qwantz.com/index.php?comic') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comic-wrap']//img[@class='comic']", $article); // Dead Philosophers elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[@class='ksc' and contains(@src, 'png')]", $article); } // Scenes From A Multiverse (to get alt tag elseif (strpos($article['link'], 'awkwardzombie.com/index.php?comic') !== FALSE) { if (!$title_text || $title_text == $article['title'] || strpos($article['title'], $alt_text) !== false){ $text_element = $doc->createElement("i", $title_text); } elseif (strpos(strtolower($article['link']), 'giantitp.com/comics/') !== FALSE) { // only keep everything starting at the first if(preg_match("@.*(
New Pull Request