rss icon indicating copy to clipboard operation
rss copied to clipboard

CDATA tags inside content not parsed

Open gonejack opened this issue 3 years ago • 1 comments

package main

import (
	"github.com/SlyMarbo/rss"
)

func main() {
	feed, err := rss.Fetch("http://www.ruanyifeng.com/blog/atom.xml")
	if err != nil {
		// handle error.
	}

	// ... Some time later ...

	err = feed.Update()
	if err != nil {
		// handle error.
	}
}

image

Related issue on other library: https://github.com/mmcdole/gofeed/issues/98

gonejack avatar Mar 02 '21 07:03 gonejack

Hi. I've taken a quick look. The problem is that item content is currently not parsed (which would remove the CDATA tags), because that would break other common feeds, which are malformed. Unfortunately I don't have much time to work on this, so it will probably be a while before there's a fix. Sorry.

SlyMarbo avatar Mar 02 '21 10:03 SlyMarbo