use strip_tags() on rss titles

This commit is contained in:
Mario
2020-05-18 11:06:46 +00:00
parent 934bcf5336
commit d0c7c99d5e

View File

@@ -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)