commands: use unsafe templating for place page titles

This commit is contained in:
Frédéric Péters 2020-12-22 14:29:11 +01:00
parent 9909e848a6
commit 1b523bc8c0
1 changed files with 1 additions and 1 deletions

View File

@ -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: