diff --git a/bridges/FrandroidBridge.php b/bridges/FrandroidBridge.php index 4f075ac0..999ef391 100644 --- a/bridges/FrandroidBridge.php +++ b/bridges/FrandroidBridge.php @@ -1,63 +1,70 @@ ', '', $string); - return $string; - } - function FrandroidExtractContent($url) { - $html2 = file_get_html($url); - $html3 = $html2->find('div.post-content', 0); - $html3->find('div.no-sidebar-ad-top',0)->outertext=''; - $ret=$html3->find('div.shortcode-container'); - foreach ($ret as $value){ - $value->outertext=''; + * RssBridgeFrandroid + * Returns the 5 newest posts from http://www.frandroid.com (full text) + * 2014-05-25 + * + * @name Frandroid + * @homepage http://www.frandroid.com/ + * @description Returns the 5 newest posts from Frandroid (full text) + * @maintainer cjohnson + */ +class FrandroidBridge extends BridgeAbstract +{ + + public function collectData(array $param) + { + + function FrandroidStripCDATA($string) + { + $string = str_replace('', '', $string); + return $string; + } + function FrandroidExtractContent($url) + { + $html2 = file_get_html($url); + $html3 = $html2->find('div.post-content', 0); + $html3->find('div.no-sidebar-ad-top', 0)->outertext = ''; + $ret = $html3->find('div.shortcode-container'); + foreach ($ret as $value) { + $value->outertext = ''; + } + + $html3->find('div#hrr-link', 0)->outertext = ''; + $text = $html3->innertext; + $text = strip_tags($text, '