diff --git a/qubes/app.py b/qubes/app.py
index b64a197a..bebc0196 100644
--- a/qubes/app.py
+++ b/qubes/app.py
@@ -924,7 +924,8 @@ class Qubes(qubes.PropertyHolder):
'/etc/qubes/templates',
'/usr/share/qubes/templates',
]),
- undefined=jinja2.StrictUndefined)
+ undefined=jinja2.StrictUndefined,
+ autoescape=True)
if load:
self.load(lock=lock)
diff --git a/qubes/tests/devices_block.py b/qubes/tests/devices_block.py
index 959ec31c..e3c4e59d 100644
--- a/qubes/tests/devices_block.py
+++ b/qubes/tests/devices_block.py
@@ -111,7 +111,8 @@ class TestApp(object):
'/etc/qubes/templates',
'/usr/share/qubes/templates',
]),
- undefined=jinja2.StrictUndefined)
+ undefined=jinja2.StrictUndefined,
+ autoescape=True)
self.domains = {}
diff --git a/qubes/tests/vm/__init__.py b/qubes/tests/vm/__init__.py
index 51e20ce7..9dd9c030 100644
--- a/qubes/tests/vm/__init__.py
+++ b/qubes/tests/vm/__init__.py
@@ -112,4 +112,5 @@ class TestApp(qubes.tests.TestEmitter):
'/etc/qubes/templates',
'/usr/share/qubes/templates',
]),
- undefined=jinja2.StrictUndefined)
+ undefined=jinja2.StrictUndefined,
+ autoescape=True)
diff --git a/qubes/tests/vm/qubesvm.py b/qubes/tests/vm/qubesvm.py
index e0d2475b..32347d84 100644
--- a/qubes/tests/vm/qubesvm.py
+++ b/qubes/tests/vm/qubesvm.py
@@ -963,7 +963,7 @@ class TC_90_QubesVM(QubesVMTestsMixin, qubes.tests.QubesTestCase):
hvmloader
- kernel specific options
+ kernel <text> specific options
@@ -1002,7 +1002,7 @@ class TC_90_QubesVM(QubesVMTestsMixin, qubes.tests.QubesTestCase):
open(os.path.join(kernel_dir, 'initramfs'), 'w').close()
with open(os.path.join(kernel_dir,
'default-kernelopts-common.txt'), 'w') as f:
- f.write('kernel specific options \n')
+ f.write('kernel specific options \n')
self.addCleanup(shutil.rmtree, '/tmp/qubes-test')
vm.kernel = 'dummy'
libvirt_xml = vm.create_config_file()