#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):

 Proposal for a documentation addition:

 {{{
 #!diff
 diff --git a/docs/ref/contrib/syndication.txt
 b/docs/ref/contrib/syndication.txt
 index 6c86be0..940123c 100644
 --- a/docs/ref/contrib/syndication.txt
 +++ b/docs/ref/contrib/syndication.txt
 @@ -919,7 +919,10 @@ They share this interface:
      ``self.feed`` for use with `custom feed generators`_.

      All parameters should be Unicode objects, except ``categories``,
 which
 -    should be a sequence of Unicode objects.
 +    should be a sequence of Unicode objects. Beware that some control
 characters
 +    are `not allowed <http://www.w3.org/International/questions/qa-
 controls>`_
 +    in XML documents. If your content has some of them, you might
 encounter a
 +    :exp:`ValueError` when producing the feed.

  :meth:`.SyndicationFeed.add_item`
      Add an item to the feed with the given parameters.
 }}}

--
Ticket URL: <https://code.djangoproject.com/ticket/24985#comment:5>
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.f952172d92929a1bb67945c03b56a8de%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to