Fever API encoding of special chars

https://github.com/FreshRSS/FreshRSS/issues/2241
pull/2243/head
Alexandre Alapetite 6 years ago
parent e4224eee2e
commit ce62ce0ebd
  1. 14
      p/api/fever.php

@ -324,9 +324,9 @@ class FeverAPI
$feeds[] = array(
'id' => $feed->id(),
'favicon_id' => $feed->id(),
'title' => $feed->name(),
'url' => $feed->url(),
'site_url' => $feed->website(),
'title' => escapeToUnicodeAlternative($feed->name(), true),
'url' => htmlspecialchars_decode($feed->url(), ENT_QUOTES),
'site_url' => htmlspecialchars_decode($feed->website(), ENT_QUOTES),
'is_spark' => 0, // unsupported
'last_updated_on_time' => $feed->lastUpdate(),
);
@ -349,7 +349,7 @@ class FeverAPI
foreach ($categories as $category) {
$groups[] = array(
'id' => $category->id(),
'title' => $category->name(),
'title' => escapeToUnicodeAlternative($category->name(), false),
);
}
@ -535,10 +535,10 @@ class FeverAPI
$items[] = array(
'id' => $entry->id(),
'feed_id' => $entry->feed(false),
'title' => $entry->title(),
'author' => $entry->authors(true),
'title' => escapeToUnicodeAlternative($entry->title(), true),
'author' => escapeToUnicodeAlternative($entry->authors(true), true),
'html' => $entry->content(),
'url' => $entry->link(),
'url' => htmlspecialchars_decode($entry->link(), ENT_QUOTES),
'is_saved' => $entry->isFavorite() ? 1 : 0,
'is_read' => $entry->isRead() ? 1 : 0,
'created_on_time' => $entry->date(true),

Loading…
Cancel
Save