diff --git a/pygeoapi/util.py b/pygeoapi/util.py index 00b04d9..720ad54 100644 --- a/pygeoapi/util.py +++ b/pygeoapi/util.py @@ -412,9 +412,8 @@ def render_j2_template(config: dict, template: Path, LOGGER.debug(f'using default templates: {TEMPLATES}') env = Environment(loader=FileSystemLoader(template_paths), - extensions=['jinja2.ext.i18n', - 'jinja2.ext.autoescape'], - autoescape=select_autoescape(['html', 'xml'])) + extensions=['jinja2.ext.i18n'], + autoescape=select_autoescape()) env.filters['to_json'] = to_json env.filters['format_datetime'] = format_datetime diff --git a/requirements.txt b/requirements.txt index c467e50..f6e5c7b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,7 @@ Babel -click>7,<=8 +click Flask -jinja2==3.0.3 +jinja2 jsonschema pydantic pygeofilter @@ -15,4 +15,4 @@ requests shapely<2.0 SQLAlchemy<2.0.0 tinydb -unicodecsv \ No newline at end of file +unicodecsv