From 1c90a3dccadc7d2da3704ff17ac9ff1a67743934 Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Sun, 21 Jun 2015 20:53:01 +0200 Subject: [PATCH] Fixed #24985 -- Added note about possible invalid feed content Thanks Michael Wood for the report and Tim Graham for the review. --- docs/ref/contrib/syndication.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/ref/contrib/syndication.txt b/docs/ref/contrib/syndication.txt index 6c86be0d5b..8da4073b97 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 `_ + in XML documents. If your content has some of them, you might encounter a + :exc:`ValueError` when producing the feed. :meth:`.SyndicationFeed.add_item` Add an item to the feed with the given parameters.