From 450d14b3dfacdbf7ac5b56e23f24a03ac80df2fe Mon Sep 17 00:00:00 2001 From: Mustafa Bal <5262061+mstfbl@users.noreply.github.com> Date: Mon, 5 Apr 2021 15:24:30 -0700 Subject: [PATCH] Fixed jinja2 environment autoescape to enable select extensions --- .circleci/regenerate.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.circleci/regenerate.py b/.circleci/regenerate.py index f963469c58..d3fd6131f7 100755 --- a/.circleci/regenerate.py +++ b/.circleci/regenerate.py @@ -15,6 +15,7 @@ """ import jinja2 +from jinja2 import select_autoescape import yaml import os.path @@ -184,7 +185,7 @@ def unittest_workflows(indentation=6): env = jinja2.Environment( loader=jinja2.FileSystemLoader(d), lstrip_blocks=True, - autoescape=False, + autoescape=select_autoescape(enabled_extensions=('html', 'xml')), ) with open(os.path.join(d, 'config.yml'), 'w') as f: