Labels Milestones
BackI suggest the following disclaimer in the post that we want $url_xpath = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, 'sp') and contains(@src, 'png')]", $article); } // Dead Philosophers elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { // Camp Weedonwantcha elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { //also get the blog $entries = $xpath->query("//div[@id='blarg']/div[last()]"); foreach ($entries as $entry){ $orig_src = $entry->getAttribute('src'); $result_html .= "
Alt: " . $img->getAttribute('title') . ""; } //noop } // Three Panel Soul elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { // Wondermark (alt tag already present elseif.