mirror of
https://github.com/miniflux/v2.git
synced 2025-06-27 16:36:00 +00:00
Handle RSS feeds with CDATA in author item element
This commit is contained in:
parent
b247f3f089
commit
053b1d0f8d
2 changed files with 30 additions and 0 deletions
|
@ -217,6 +217,8 @@ func (r *rssItem) entryAuthor() string {
|
|||
default:
|
||||
if rssAuthor.Name != "" {
|
||||
author = rssAuthor.Name
|
||||
} else if strings.Contains(rssAuthor.Inner, "<![CDATA[") {
|
||||
author = rssAuthor.Data
|
||||
} else {
|
||||
author = rssAuthor.Inner
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue