aboutsummaryrefslogtreecommitdiffstats
path: root/include/feedutils.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-03-17 09:13:09 +0000
committerMario <mario@mariovavti.com>2021-03-17 09:13:09 +0000
commit80b6954c29ca4394b10fc967ac0a180e920a455b (patch)
tree7c92ef9e6be09fc074422ac8360ef8592c75bb50 /include/feedutils.php
parentda37548e2e7b6dde1827037a94fbcfb010abfda6 (diff)
downloadvolse-hubzilla-80b6954c29ca4394b10fc967ac0a180e920a455b.tar.gz
volse-hubzilla-80b6954c29ca4394b10fc967ac0a180e920a455b.tar.bz2
volse-hubzilla-80b6954c29ca4394b10fc967ac0a180e920a455b.zip
use html2plain for summary
Diffstat (limited to 'include/feedutils.php')
-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 );
}
}