Skip to content

A free, self-hostable news aggregator…

SimplePie Strip comments (#3288)

Alexandre Alapetitef7d69ad1de38
diff --git a/lib/lib_rss.php b/lib/lib_rss.php
index 1ee054c14..955f0b71e 100644
--- a/lib/lib_rss.php
+++ b/lib/lib_rss.php
@@ -165,6 +165,7 @@ function customSimplePie($attributes = array()) {
}
$simplePie->set_curl_options($curl_options);
+ $simplePie->strip_comments(true);
$simplePie->strip_htmltags(array(
'base', 'blink', 'body', 'doctype', 'embed',
'font', 'form', 'frame', 'frameset', 'html',