aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-03-17 09:13:09 +0000
committerMario <mario@mariovavti.com>2021-03-17 10:13:55 +0100
commit8d3c5114ba87a6bb90bd7d4755709dd1f009c266 (patch)
treeaf75873745af94b8086c7fbc48d00595d945ab6a
parent3b9a9db664e41ab4f5e26154123324fb81cf39d8 (diff)
downloadvolse-hubzilla-8d3c5114ba87a6bb90bd7d4755709dd1f009c266.tar.gz
volse-hubzilla-8d3c5114ba87a6bb90bd7d4755709dd1f009c266.tar.bz2
volse-hubzilla-8d3c5114ba87a6bb90bd7d4755709dd1f009c266.zip
use html2plain for summary
(cherry picked from commit 80b6954c29ca4394b10fc967ac0a180e920a455b)
-rw-r--r--include/feedutils.php5
1 files changed, 2 insertions, 3 deletions
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 );
}
}