1
0
Fork 0
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:
hykhd 2021-03-01 04:26:52 +08:00 committed by GitHub
parent b247f3f089
commit 053b1d0f8d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 30 additions and 0 deletions

View file

@ -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
}