Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CDATA tags inside content not parsed #74

Open
gonejack opened this issue Mar 2, 2021 · 1 comment
Open

CDATA tags inside content not parsed #74

gonejack opened this issue Mar 2, 2021 · 1 comment

Comments

@gonejack
Copy link

gonejack commented Mar 2, 2021

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: mmcdole/gofeed#98

@SlyMarbo
Copy link
Owner

SlyMarbo commented Mar 2, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants