From 1b523bc8c0bcc939a611f036afe51a36fe312a3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Tue, 22 Dec 2020 14:29:11 +0100 Subject: [PATCH] commands: use unsafe templating for place page titles --- combo_plugin_gnm/management/commands/gnm_create_places.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/combo_plugin_gnm/management/commands/gnm_create_places.py b/combo_plugin_gnm/management/commands/gnm_create_places.py index 7b70aa7..1690f89 100644 --- a/combo_plugin_gnm/management/commands/gnm_create_places.py +++ b/combo_plugin_gnm/management/commands/gnm_create_places.py @@ -61,7 +61,7 @@ class Command(BaseCommand): page = Page() page_title_template = json_cell_type.get( 'toodego:page-title-template', - '{{ properties.nom }}') + '{{ properties.nom|safe }}') ctx = Context({'properties': feature['properties']}) page.title = Template(page_title_template).render(ctx) if not page.title: