summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2013-09-14 18:36:43 +0200
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2013-09-14 18:36:43 +0200
commit5072774f02a7aa8a5743d749fd8db516d6da8a79 (patch)
treef441a9f77ea9276870c2ca4af35b895b378f9b4f
parentae948a500fe88229a3afafe5f93a88c17c332383 (diff)
parent742854ffb4375770d8af71f4d67f44f351d1d704 (diff)
Merge branch 'htmlencoding' of https://github.com/Alkarex/FreshRSS into Alkarex-htmlencoding
Conflicts: app/models/Feed.php
-rw-r--r--app/models/Feed.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/app/models/Feed.php b/app/models/Feed.php
index 0ea083d5a..1b380136e 100644
--- a/app/models/Feed.php
+++ b/app/models/Feed.php
@@ -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 = strip_tags($item->get_title ());
$author = $item->get_author ();
$link = $item->get_permalink ();
$date = strtotime ($item->get_date ());