3
1
Back

Various updates, additions // PhD Unknown elseif (strpos($article["link"], "www.smbc-comics.com/comic/") !== FALSE) { $doc = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this } //No matches if ($img->getAttribute('title')) { $article['content'] .= "Alt: " . $img->getAttribute('title') . ""; } } // Scenes From A Multiverse (to get alt tags) // Scenes From A Multiverse (to get alt tags) // Scenes From A Multiverse (to get alt tags) elseif (strpos($article['link'], 'http://www.achewood.com/index.php?date=') !== FALSE) { // Awkward Zombie $orig_content = strip_tags($article['content']); // Awkward Zombie $entries = $xpath->query("//span[@class='rss-content']"); foreach ($entries as $entry) { $article['content'] .= "

" . $entry->textContent . "

"; } } Invisible Bread, Softer World (alt tags), Dinosaur Comics Cleanup elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE) { $xpath .

New Pull Request