aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-05-18 11:06:46 +0000
committerMario <mario@mariovavti.com>2020-05-18 11:06:46 +0000
commitd0c7c99d5e1eb27281431231640c7e8c019b90e1 (patch)
treed7873031900a8849b37311e7dea4f368f8a5f824 /include
parent934bcf533602b052449c0a70e6a7f894da9cc828 (diff)
downloadvolse-hubzilla-d0c7c99d5e1eb27281431231640c7e8c019b90e1.tar.gz
volse-hubzilla-d0c7c99d5e1eb27281431231640c7e8c019b90e1.tar.bz2
volse-hubzilla-d0c7c99d5e1eb27281431231640c7e8c019b90e1.zip
use strip_tags() on rss titles
Diffstat (limited to 'include')
-rw-r--r--include/feedutils.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/feedutils.php b/include/feedutils.php
index 9ff09cc66..0a9af7ee1 100644
--- a/include/feedutils.php
+++ b/include/feedutils.php
@@ -452,6 +452,7 @@ function get_atom_elements($feed, $item) {
else {
$res['title'] = bbcode($res['title'], [ 'tryoembed' => false ]);
$res['title'] = html2plain($res['title'], 0, true);
+ $res['title'] = strip_tags($res['title']);
$res['title'] = html_entity_decode($res['title'], ENT_QUOTES, 'UTF-8');
$res['title'] = preg_replace("/https?\:\/\/[a-zA-Z0-9\:\/\-\?\&\;\.\=\_\~\#\%\$\!\+\,\@]+/", "", $res['title']);
while (strpos($res['title'], "\n") !== false)