summaryrefslogtreecommitdiffstats
path: root/utility
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-09-16 17:26:29 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2013-09-16 17:27:45 +0200
commit483ef49d7ca49c6e7eea8288db9fb4bdd59cdc58 (patch)
treeada0a77b15f6f69b485f2969197c72db728b90ac /utility
parent84c033b9182db27f74211b3bba3786adefcfa37f (diff)
manually convert &apos; to ' because its not built into PHP for author an title
Diffstat (limited to 'utility')
-rw-r--r--utility/feedfetcher.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/utility/feedfetcher.php b/utility/feedfetcher.php
index 2475e7c27..e36fe3beb 100644
--- a/utility/feedfetcher.php
+++ b/utility/feedfetcher.php
@@ -112,8 +112,15 @@ class FeedFetcher implements IFeedFetcher {
private function decodeTwice($string) {
- return html_entity_decode(
- html_entity_decode($string, ENT_COMPAT, 'UTF-8'), ENT_COMPAT, 'UTF-8'
+ // behold! &apos; is not converted by PHP thats why we need to do it
+ // manually (TM)
+ return str_replace('&apos;', '\'',
+ html_entity_decode(
+ html_entity_decode(
+ $string, ENT_QUOTES, 'UTF-8'
+ ),
+ ENT_QUOTES, 'UTF-8'
+ )
);
}