do not show summary if it is equal to body and some styling for the summary/article toggle links

This commit is contained in:
Mario Vavti
2018-02-19 14:11:58 +01:00
parent fac5d81790
commit 43992dc463
3 changed files with 13 additions and 2 deletions

View File

@@ -436,6 +436,9 @@ function get_atom_elements($feed, $item) {
$summary = unxmlify($item->get_description(true));
if($summary === $res['body'])
$summary = '';
if(($summary) && ((strpos($summary,'<') !== false) || (strpos($summary,'>') !== false))) {
$summary = purify_html($summary);
$summary = html2bbcode($summary);