1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-09-15 18:57:04 +00:00

Handle RDF feed with HTML encoded entry title

Example: http://rss.slashdot.org/Slashdot/slashdotMain
This commit is contained in:
Frédéric Guillot 2021-03-19 18:39:44 -07:00 committed by fguillot
parent 14888f1cb8
commit 96f3e888cf
2 changed files with 60 additions and 1 deletions

View file

@ -6,6 +6,7 @@ package rdf // import "miniflux.app/reader/rdf"
import (
"encoding/xml"
"html"
"strings"
"time"
@ -75,7 +76,7 @@ func (r *rdfItem) Transform() *model.Entry {
}
func (r *rdfItem) entryTitle() string {
return strings.TrimSpace(r.Title)
return html.UnescapeString(strings.TrimSpace(r.Title))
}
func (r *rdfItem) entryContent() string {