rss
rss copied to clipboard
CDATA tags inside content not parsed
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.
}
}
Related issue on other library: https://github.com/mmcdole/gofeed/issues/98
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.