From 742854ffb4375770d8af71f4d67f44f351d1d704 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Mon, 26 Aug 2013 00:26:02 +0200 Subject: Do not perform double HTML-encoding The content seem to be already HTML safe, e.g. for some feeds in UTF-8 with HTML special characters encoded, for some other feeds with all eligible characters HTML-encoded --- app/models/Feed.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/Feed.php b/app/models/Feed.php index 678809af6..563c60e6c 100644 --- a/app/models/Feed.php +++ b/app/models/Feed.php @@ -216,7 +216,7 @@ class Feed extends Model { foreach ($feed->get_items () as $item) { $title = $item->get_title (); $title = preg_replace('#(.+)#', '\\2', $title); - $title = htmlentities($title); + //$title = htmlentities($title, ENT_NOQUOTES, 'UTF-8'); //Do not do double html-encoding (debug needed) $author = $item->get_author (); $link = $item->get_permalink (); $date = strtotime ($item->get_date ()); -- cgit v1.2.3