SimplePie Strip comments (#3288)

#fix https://github.com/FreshRSS/FreshRSS/issues/3282 (workaround an nginx configuration bug)

We do not need to keep HTML comments in RSS content.
This commit is contained in:
Alexandre Alapetite
2020-12-28 13:09:14 +01:00
committed by GitHub
parent e93675e036
commit f7d69ad1de

View File

@@ -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',