зеркало из https://github.com/nextcloud/news.git
apos is handled by html_decode since php 5.4.0
This commit is contained in:
Родитель
1f3312a077
Коммит
e970ca9328
|
@ -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'
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче