Ampersand symbol in titles breaks RSS feed #25

Closed
opened 2025-05-26 09:05:49 +02:00 by wvc · 3 comments

Today I ran into an issue with one of the blogs using BSSG.
The problem is that if an article title contains an ampersand &, the generated RSS feed doesn't escape the character properly, which breaks the RSS.
The blog in question: https://blog.pipetogrep.org/rss.xml
It has two ampersands in this post title: https://blog.pipetogrep.org/2025/05/14/netbsd-ibooks-python-oh-my/
These two ampersands are even highlighted in blog's source here: https://github.com/llamallama/blog/blob/main/rss.xml
I guess the correct way is to use &amp instead of plain &

Today I ran into an issue with one of the blogs using BSSG. The problem is that if an article title contains an ampersand `&`, the generated RSS feed doesn't escape the character properly, which breaks the RSS. The blog in question: https://blog.pipetogrep.org/rss.xml It has two ampersands in this post title: https://blog.pipetogrep.org/2025/05/14/netbsd-ibooks-python-oh-my/ These two ampersands are even highlighted in blog's source here: https://github.com/llamallama/blog/blob/main/rss.xml I guess the correct way is to use `&amp` instead of plain `&`
Owner

Hi, thank you for your report. I'll fix it ASAP.

Hi, thank you for your report. I'll fix it ASAP.
Owner

Committed a fix in the main repo. Could you please test it?

Committed a fix in the main repo. Could you please test it?
Author

Confirming that fix is working, thank you for the quick response!

Confirming that fix is working, thank you for the quick response!
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: stefano/BSSG#25
No description provided.