From 401663aac0f6bafb8f9ccc470df9fb2672fb17f5 Mon Sep 17 00:00:00 2001 From: Enzo PALMA Date: Thu, 5 Mar 2015 14:42:25 +0100 Subject: [PATCH 1/4] Adding Frandroid bridge since they truncate their RSS --- bridges/FrandroidBridge.php | 63 +++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 bridges/FrandroidBridge.php diff --git a/bridges/FrandroidBridge.php b/bridges/FrandroidBridge.php new file mode 100644 index 0000000..4f075ac --- /dev/null +++ b/bridges/FrandroidBridge.php @@ -0,0 +1,63 @@ +', '', $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, '