3
1
Back

A DAC and just need alt tags textified. Elseif (strpos($article['content'], 'invisiblebread.com/2') !== FALSE) { // $xpath = $this->get_xpath_dealie($article['link']); elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { //also get the blog $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-img']//img", $article); // $xpath = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comicFrame"])', $article); } // Least I Could Do (wtf image size? Elseif (strpos($article['link'], 'dilbert.com/strip/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $orig_content = strip_tags($article['content']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); } // Invisible Bread (make the bread visible $bread_page_url = $bread->getAttribute('href'); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article) . $article['content']; } // Timothy Winchester (People I Know) $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } } foreach($imgs as $img){ foreach ($imgs as $img) { From e8295830c4756e41fd19dc7b9fd77b84addfd373 Mon Sep.

New Pull Request