Skip to content

A free, self-hostable news aggregator…

Merge branch 'htmlencoding' of https://github.com/Alkarex/FreshRSS into Alkarex-htmlencoding

Marien Fressinaud5072774f02a7
diff --cc app/models/Feed.php
index 0ea083d5a,563c60e6c..1b380136e
--- a/app/models/Feed.php
+++ b/app/models/Feed.php
@@@ -214,9 -214,9 +214,7 @@@ class Feed extends Model
$entries = array ();
foreach ($feed->get_items () as $item) {
-- $title = $item->get_title ();
-- $title = preg_replace('#<a(.+)>(.+)</a>#', '\\2', $title);
- $title = htmlentities($title, ENT_NOQUOTES, 'UTF-8');
- //$title = htmlentities($title, ENT_NOQUOTES, 'UTF-8'); //Do not do double html-encoding (debug needed)
++ $title = strip_tags($item->get_title ());
$author = $item->get_author ();
$link = $item->get_permalink ();
$date = strtotime ($item->get_date ());