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:
parent
502db64b28
commit
a3ce03cc9d
3 changed files with 32 additions and 3 deletions
|
@ -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"`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue