gofeed icon indicating copy to clipboard operation
gofeed copied to clipboard

Content parsed into Description

Open gonejack opened this issue 5 years ago • 1 comments

I got a feed https://www.williamlong.info/rss.xml that gofeed would parse it's article content as description and content == ""

image

gonejack avatar Mar 06 '21 10:03 gonejack

package main

import (
	"fmt"
	"github.com/mmcdole/gofeed"
)

func main() {
	feed, _ :=gofeed.NewParser().ParseURL("https://www.williamlong.info/rss.xml")

	fmt.Println("content:", feed.Items[0].Content)
	fmt.Println("description:", feed.Items[0].Description)
}

gonejack avatar Mar 06 '21 10:03 gonejack

There are no 'content' fields in that feed. Only descriptions. I think it's functioning to spec.

rodmcelrath avatar Mar 24 '23 17:03 rodmcelrath

@gonejack based on @rodmcelrath's comment, I'm going to close this issue. Re-open if you feel something is incorrect.

mmcdole avatar Mar 25 '23 16:03 mmcdole