Handle content:encoded
This commit is contained in:
parent
ed51885f15
commit
833b57154f
9
rss.go
9
rss.go
|
@ -188,6 +188,15 @@ func (this *Feed) readRss2(doc *xmlx.Document) (err error) {
|
||||||
i.Source.Text = src.Value
|
i.Source.Text = src.Value
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tl = item.SelectNodes("http://purl.org/rss/1.0/modules/content/", "*")
|
||||||
|
for _, lv := range tl {
|
||||||
|
if lv.Name.Local == "encoded" {
|
||||||
|
i.Content = new(Content)
|
||||||
|
i.Content.Text = lv.String()
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
ch.Items = append(ch.Items, i)
|
ch.Items = append(ch.Items, i)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue