summaryrefslogtreecommitdiffstats
path: root/utility
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-04-28 17:27:59 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2013-04-28 17:27:59 +0200
commitbb19fd081c0f8706c0c336a8447921b8a1051689 (patch)
tree864003ddee6a0a735296205aaa8a14e71860715e /utility
parent4be605e3ca660b6c8da3540cd40bd3400da7812a (diff)
use friggin unicode because 5.3 doesnt use it as default
Diffstat (limited to 'utility')
-rw-r--r--utility/feedfetcher.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/utility/feedfetcher.php b/utility/feedfetcher.php
index 0fea5d1b7..6f34df2d9 100644
--- a/utility/feedfetcher.php
+++ b/utility/feedfetcher.php
@@ -111,7 +111,7 @@ class FeedFetcher implements IFeedFetcher {
$item->setUrl($simplePieItem->get_permalink());
// unescape content because angularjs helps agains XSS
$item->setTitle(html_entity_decode($simplePieItem->get_title()),
- ENT_XML1 | ENT_COMPAT, 'UTF-8' );
+ ENT_COMPAT, 'UTF-8' );
$guid = $simplePieItem->get_id();
$item->setGuid($guid);
$item->setGuidHash(md5($guid));
@@ -122,12 +122,12 @@ class FeedFetcher implements IFeedFetcher {
$author = $simplePieItem->get_author();
if ($author !== null) {
$name = html_entity_decode($author->get_name(),
- ENT_XML1 | ENT_COMPAT, 'UTF-8' );
+ ENT_COMPAT, 'UTF-8' );
if ($name) {
$item->setAuthor($name);
} else {
$item->setAuthor(html_entity_decode($author->get_email()),
- ENT_XML1 | ENT_COMPAT, 'UTF-8' );
+ ENT_COMPAT, 'UTF-8' );
}
}
@@ -150,7 +150,7 @@ class FeedFetcher implements IFeedFetcher {
// unescape content because angularjs helps agains XSS
$title = html_entity_decode($simplePieFeed->get_title(),
- ENT_XML1 | ENT_COMPAT, 'UTF-8' );
+ ENT_COMPAT, 'UTF-8' );
// if there is no title use the url
if(!$title) {