-
Notifications
You must be signed in to change notification settings - Fork 605
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
rss: Remove explicit/duplicate XML escaping #9973
Conversation
XML tags inside `CDATA` sections don't need to be escaped, so this explicit escaping step led to an unnecessary duplicate escaping being applied.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #9973 +/- ##
==========================================
- Coverage 89.22% 89.22% -0.01%
==========================================
Files 293 293
Lines 30394 30394
==========================================
- Hits 27120 27118 -2
- Misses 3274 3276 +2 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to https://en.wikipedia.org/wiki/CDATA#Nesting, if I understand correctly, we need to encode ]]>
if description contains it.
I added another commit that explicitly checks for |
741050e
to
6154581
Compare
I'll merge this PR for now until the issue is fixed upstream :) |
XML tags inside
CDATA
sections don't need to be escaped, so this explicit escaping step led to an unnecessary duplicate escaping being applied.Related: