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:
parent
14888f1cb8
commit
96f3e888cf
2 changed files with 60 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue