From 80b6954c29ca4394b10fc967ac0a180e920a455b Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 17 Mar 2021 09:13:09 +0000 Subject: use html2plain for summary --- include/feedutils.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'include/feedutils.php') diff --git a/include/feedutils.php b/include/feedutils.php index 9cb645ff8..6cae14a01 100644 --- a/include/feedutils.php +++ b/include/feedutils.php @@ -440,8 +440,7 @@ function get_atom_elements($feed, $item) { $summary = ''; if(($summary) && ((strpos($summary,'<') !== false) || (strpos($summary,'>') !== false))) { - $summary = purify_html($summary); - $summary = html2bbcode($summary); + $summary = html2plain($summary); } @@ -732,7 +731,7 @@ function get_atom_elements($feed, $item) { if((strpos($type,'audio') === 0) && (strpos($res['body'], ']' . $link . '[/audio]') === false) && (strpos($link,'http') === 0)) { $res['body'] .= "\n\n" . '[audio]' . $link . '[/audio]'; } - + $res['attach'][] = array('href' => $link, 'length' => $len, 'type' => $type, 'title' => $title ); } } -- cgit v1.2.3