aboutsummaryrefslogtreecommitdiffhomepage
path: root/reader/rdf
diff options
context:
space:
mode:
authorGravatar Frédéric Guillot <fred@miniflux.net>2017-11-22 14:52:31 -0800
committerGravatar Frédéric Guillot <fred@miniflux.net>2017-11-22 14:52:31 -0800
commit2b641cc224c39487297d3e19b2dc7af316deda14 (patch)
tree7f30b391b8c1f163f8ec2a44e1edfe91a30c0cfc /reader/rdf
parent3b40ce49603e106a38a156b3749f5f612914cd5d (diff)
Improve feed parsers
Diffstat (limited to 'reader/rdf')
-rw-r--r--reader/rdf/rdf.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/reader/rdf/rdf.go b/reader/rdf/rdf.go
index 8622d66..9b8ccdc 100644
--- a/reader/rdf/rdf.go
+++ b/reader/rdf/rdf.go
@@ -6,6 +6,7 @@ package rdf
import (
"encoding/xml"
+ "strings"
"time"
"github.com/miniflux/miniflux2/helper"
@@ -54,8 +55,8 @@ type rdfItem struct {
func (r *rdfItem) Transform() *model.Entry {
entry := new(model.Entry)
- entry.Title = sanitizer.StripTags(r.Title)
- entry.Author = sanitizer.StripTags(r.Creator)
+ entry.Title = strings.TrimSpace(r.Title)
+ entry.Author = strings.TrimSpace(r.Creator)
entry.URL = r.Link
entry.Content = processor.ItemContentProcessor(entry.URL, r.Description)
entry.Hash = getHash(r)