summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fetcher/feedfetcher.php12
1 files changed, 4 insertions, 8 deletions
diff --git a/fetcher/feedfetcher.php b/fetcher/feedfetcher.php
index 60bb404df..6b7460679 100644
--- a/fetcher/feedfetcher.php
+++ b/fetcher/feedfetcher.php
@@ -140,15 +140,11 @@ class FeedFetcher implements IFeedFetcher {
private function decodeTwice($string) {
- // behold! ' is not converted by PHP that's why we need to do it
- // manually (TM)
- return str_replace(''', '\'',
+ return html_entity_decode(
html_entity_decode(
- html_entity_decode(
- $string, ENT_QUOTES, 'UTF-8'
- ),
- ENT_QUOTES, 'UTF-8'
- )
+ $string, ENT_QUOTES | ENT_HTML5, 'UTF-8'
+ ),
+ ENT_QUOTES | ENT_HTML5, 'UTF-8'
);
}