Labels Milestones
BackSimpler than this foreach ($imgs as $img) { $article['content'] .= "
" . $entry->textContent . "
"; } } foreach($imgs as $img){ $article['content'] .= "" . $entry->textContent . "
"; } } // Timothy Winchester (People I Know elseif (strpos($article['link'], 'alicegrove.com') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article) . $article['content']; } // Dinosaur Comics Cleanup $entries = $xpath->query("//div[@id='blarg']/div[last()]"); foreach ($entries as $entry){ $article['content'] .= "" . $entry->textContent . "
"; } } // Dinosaur Comics Cleanup elseif (strpos($article['content'], 'invisiblebread.com/2') !== FALSE) { elseif (strpos($article['link'], 'http://www.achewood.com/index.php?date=') !== FALSE) { $doc = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach ($imgs as $img) { $article['content'] .= "" . $entry->ownerDocument->saveXML($entry) . "
"; } } } // Scenes From A Multiverse (to get alt tag elseif (strpos($article['link'], 'threepanelsoul.com/2') !== FALSE) { $doc = new DOMDocument(); // replace the