From 4a69c3ae8ab0f14dd8428539f83c55e2336d18fa Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 19 Jan 2023 08:43:43 +0530 Subject: [PATCH] ... --- src/calibre/web/feeds/recipes/collection.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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', '') })