mirror of
https://github.com/miniflux/v2.git
synced 2025-08-16 18:01:37 +00:00
Improve feed parsers
This commit is contained in:
parent
3b40ce4960
commit
2b641cc224
4 changed files with 27 additions and 25 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue