From 0dbb024c99d2e27f579522a1efb2d3fe567a46fe Mon Sep 17 00:00:00 2001 From: zotlabs Date: Sun, 11 Feb 2018 14:12:24 -0800 Subject: purify summary --- include/feedutils.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/feedutils.php') 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 -- cgit v1.2.3