diff --git a/src/calibre/web/feeds/recipes/collection.py b/src/calibre/web/feeds/recipes/collection.py index 92095af45c..40a8ec84f6 100644 --- a/src/calibre/web/feeds/recipes/collection.py +++ b/src/calibre/web/feeds/recipes/collection.py @@ -58,13 +58,13 @@ def serialize_recipe(urn, recipe_class): ns = 'no' if ns is True: ns = 'yes' - return (' ').format(**{ - 'id' : str(urn), + return (' ').format(**{ + 'id' : quoteattr(str(urn)), 'title' : attr('title', _('Unknown')), 'author' : attr('__author__', default_author), 'language' : attr('language', 'und'), - 'needs_subscription' : ns, + 'needs_subscription' : quoteattr(ns), 'description' : attr('description', '') })