summaryrefslogtreecommitdiffstats
path: root/app/classes/PlanetFeed.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/classes/PlanetFeed.php')
-rw-r--r--app/classes/PlanetFeed.php22
1 files changed, 21 insertions, 1 deletions
diff --git a/app/classes/PlanetFeed.php b/app/classes/PlanetFeed.php
index 3d2ea2f..6cd6b08 100644
--- a/app/classes/PlanetFeed.php
+++ b/app/classes/PlanetFeed.php
@@ -23,7 +23,27 @@ class PlanetFeed extends SimplePie
$this->set_autodiscovery_level(SIMPLEPIE_LOCATOR_NONE);
$this->set_feed_url($this->getFeed());
$this->set_timeout(5);
- $this->set_stupidly_fast(true);
+
+ $this->enable_order_by_date(false);
+ $this->remove_div(false);
+ $this->strip_comments(false);
+ $this->strip_attributes(false);
+ $this->set_image_handler(false);
+ $this->set_https_domains(array());
+ $this->strip_htmltags([
+ 'base', 'blink', 'body',
+ 'doctype',
+ 'embed',
+ 'font', 'form', 'frame', 'frameset',
+ 'html',
+ 'iframe', 'input',
+ 'marquee', 'meta',
+ 'noscript',
+ 'object',
+ 'param',
+ 'script',
+ 'style'
+ ]);
}
public function getFeed()