1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-07-02 16:38:37 +00:00

feat(rss): add workaround for RSS item title with HTML content

This commit is contained in:
Frédéric Guillot 2025-02-14 21:15:45 -08:00
parent 502db64b28
commit a3ce03cc9d
3 changed files with 32 additions and 3 deletions

View file

@ -111,7 +111,7 @@ type RSSImage struct {
type RSSItem struct {
// Title is the title of the item.
Title string `xml:"rss title"`
Title RSSTitle `xml:"rss title"`
// Link is the URL of the item.
Link string `xml:"rss link"`
@ -169,6 +169,11 @@ type RSSItem struct {
googleplay.GooglePlayItemElement
}
type RSSTitle struct {
Data string `xml:",chardata"`
Inner string `xml:",innerxml"`
}
type RSSAuthor struct {
XMLName xml.Name
Data string `xml:",chardata"`