#24985: Provide a way to sanitize invalid characters from Rss201rev2Feed
-------------------------------------+------------------------------------
Reporter: michaelgwood | Owner: nobody
Type: New feature | Status: new
Component: contrib.syndication | Version: 1.7
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+------------------------------------
Comment (by claudep):
#20197 is similar but targets XML serialization with `dumpdata`. I just
added a patch in that ticket to loudly fail instead of silently producing
invalid XML. Automatic sanitation is tricky, because depending on the use
case, you might want to remove the offending chars, replace them with some
alternative coding, or simply fix the source.
The patch for #20197 also affects RSS production, as the same
`django.utils.xmlutils.SimplerXMLGenerator` is used. If it gets committed,
we might want to add a similar admonition in syndication docs.
--
Ticket URL: <https://code.djangoproject.com/ticket/24985#comment:4>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/070.25618000e6651e78a3447ca725485146%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.