Skip to content

RSS feed broken #5209

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

Closed
Aquilosion opened this issue Jul 25, 2020 · 1 comment · Fixed by #5214
Closed

RSS feed broken #5209

Aquilosion opened this issue Jul 25, 2020 · 1 comment · Fixed by #5214
Labels

Comments

@Aquilosion
Copy link

The recent blog post, Svelte <3 TypeScript, breaks the RSS feed because the < isn't sanitised, it produces this:

<title>Svelte<3 TypeScript</title>

The offending lines are here, it looks like the <description> tag needs sanitising as well:

https://github.com/sveltejs/v2.svelte.dev/blob/b21e7b90ad7f2d62556eba660314e7238a22ce4a/src/routes/blog/rss.xml.js#L25-L27

@Conduitry Conduitry transferred this issue from sveltejs/v2.svelte.dev Jul 25, 2020
@Conduitry
Copy link
Member

Moving this over to the main Svelte repo, where the current site lives.

The relevant code is at https://github.com/sveltejs/svelte/blob/999b1f4cdb37f7d529d71a9f35de44b3fb90bfb4/site/src/routes/blog/rss.xml.js - each of these strings we're using here need to be escaped for HTML.

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

Successfully merging a pull request may close this issue.

2 participants