diff options
Diffstat (limited to 'utility/feedfetcher.php')
-rw-r--r-- | utility/feedfetcher.php | 11 |
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! ' is not converted by PHP thats why we need to do it + // manually (TM) + return str_replace(''', '\'', + html_entity_decode( + html_entity_decode( + $string, ENT_QUOTES, 'UTF-8' + ), + ENT_QUOTES, 'UTF-8' + ) ); } |