diff options
| author | 2013-08-26 00:26:02 +0200 | |
|---|---|---|
| committer | 2013-08-26 00:26:02 +0200 | |
| commit | 742854ffb4375770d8af71f4d67f44f351d1d704 (patch) | |
| tree | 0cc0a8dccdb745d56c9913e48383eb459e8342aa /app/models/Feed.php | |
| parent | 31a6a13268023a2db5eba2445ee6c7db4a6d9623 (diff) | |
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
Diffstat (limited to 'app/models/Feed.php')
| -rw-r--r-- | app/models/Feed.php | 2 |
1 files changed, 1 insertions, 1 deletions
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('#<a(.+)>(.+)</a>#', '\\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 ()); |
