aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-02-11 14:12:24 -0800
committerzotlabs <mike@macgirvin.com>2018-02-11 14:12:24 -0800
commit0dbb024c99d2e27f579522a1efb2d3fe567a46fe (patch)
tree912bdcfb9e607bf764002f853417739d74adbadc
parent5a9ea29614b8620c10d84f67a1a7c93fe537a037 (diff)
downloadvolse-hubzilla-0dbb024c99d2e27f579522a1efb2d3fe567a46fe.tar.gz
volse-hubzilla-0dbb024c99d2e27f579522a1efb2d3fe567a46fe.tar.bz2
volse-hubzilla-0dbb024c99d2e27f579522a1efb2d3fe567a46fe.zip
purify summary
-rw-r--r--include/feedutils.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/feedutils.php b/include/feedutils.php
index 644e205a6..986248c53 100644
--- a/include/feedutils.php
+++ b/include/feedutils.php
@@ -436,6 +436,13 @@ function get_atom_elements($feed, $item) {
$summary = unxmlify($item->get_description(true));
+ if(($summary) && ((strpos($summary,'<') !== false) || (strpos($summary,'>') !== false))) {
+ $summary = purify_html($summary);
+ $summary = html2bbcode($summary);
+ }
+
+
+
// removing the content of the title if its identically to the body
// This helps with auto generated titles e.g. from tumblr