diff --git a/src/pds/registry/utils/treks/product_service_builder.py b/src/pds/registry/utils/treks/product_service_builder.py index c11f8aa..939971d 100644 --- a/src/pds/registry/utils/treks/product_service_builder.py +++ b/src/pds/registry/utils/treks/product_service_builder.py @@ -5,7 +5,7 @@ from datetime import date import requests -from jinja2 import Environment +from jinja2 import Environment, select_autoescape from pds.registry.utils.treks import templates @@ -60,7 +60,7 @@ def create_pds4_xml(self): self.create_reference_list() # create env - env = Environment() + env = Environment(autoescape=select_autoescape(['html', 'xml'])) # get template with importlib.resources.open_text(templates, "product-service-template.xml") as io: