3
1
Back

= $xpath->query("//div[@id='blarg']/div[last()]"); foreach ($entries as $entry) { $article['content'] .= "" . $entry->textContent . "

"; } } //Sites that provide images and just need alt tags textified. } //Sites that provide images and just need alt tags elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { $xpath = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } } // Three Panel Soul // Three Panel Soul elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { // generate holes.

New Pull Request