diff options
Diffstat (limited to 'include/feedutils.php')
-rw-r--r-- | include/feedutils.php | 7 |
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 |