3
1
Back

Blog entry $article['content'] .= "

" . $entry->textContent . "

"; } } } // Dinosaur Comics Cleanup elseif (strpos($article['link'], 'http://www.geekculture.com/joyoftech/') !== FALSE) { $doc = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this // only keep everything starting at the first if(preg_match("@.*()@", $article['content'], $matches)) { $article['content'] .= "

$orig_content

"; //also append the blarg post because that's small, interesting.

New Pull Request