apos is handled by html_decode since php 5.4.0

This commit is contained in:
Alessandro Cosentino 2015-11-02 20:52:56 +01:00
Родитель 1f3312a077
Коммит e970ca9328
1 изменённых файлов: 4 добавлений и 8 удалений

Просмотреть файл

@ -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'
);
}