diff options
| author | 2013-08-25 21:40:39 +0200 | |
|---|---|---|
| committer | 2013-08-25 21:40:39 +0200 | |
| commit | 6981a24b9c41c577d9c47e7e53c094fbecbb6b38 (patch) | |
| tree | 9a0d1eccd34752ff4d3767fd6d47d9687380965a /app/models/Feed.php | |
| parent | 4cf9119a7dfd8b8a45344dff4d884a445dcb5a5a (diff) | |
More explicit UTF-8
More explicit UTF-8 in PDO MySQL, html_entity_decode, htmlentities, and
htmlspecialchars (less important)
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..0ea083d5a 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'); $author = $item->get_author (); $link = $item->get_permalink (); $date = strtotime ($item->get_date ()); |
