diff --git a/osxphotos/templates/xmp_sidecar.mako b/osxphotos/templates/xmp_sidecar.mako
index 3bc564ee..add2663d 100644
--- a/osxphotos/templates/xmp_sidecar.mako
+++ b/osxphotos/templates/xmp_sidecar.mako
@@ -12,7 +12,7 @@
% if desc is None:
% else:
- ${desc}
+ ${desc | x}
% endif
%def>
@@ -20,7 +20,7 @@
% if title is None:
% else:
- ${title}
+ ${title | x}
% endif
%def>
@@ -30,7 +30,7 @@
% for subj in subject:
- ${subj}
+ ${subj | x}
% endfor
@@ -48,7 +48,7 @@
% for person in persons:
- ${person}
+ ${person | x}
% endfor
@@ -60,7 +60,7 @@
% for keyword in keywords:
- ${keyword}
+ ${keyword | x}
% endfor
diff --git a/tests/test_export_catalina_10_15_7.py b/tests/test_export_catalina_10_15_7.py
index 87d13f35..30593bad 100644
--- a/tests/test_export_catalina_10_15_7.py
+++ b/tests/test_export_catalina_10_15_7.py
@@ -1029,7 +1029,7 @@ def test_xmp_sidecar_gps():
xmlns:photoshop="http://ns.adobe.com/photoshop/1.0/">
jpg
- St. James's Park
+ St. James's Park
@@ -1038,7 +1038,7 @@ def test_xmp_sidecar_gps():
London
United Kingdom
London 2018
- St. James's Park
+ St. James's Park
2018-10-13T09:18:12.501000-04:00
@@ -1055,7 +1055,7 @@ def test_xmp_sidecar_gps():
London
United Kingdom
London 2018
- St. James's Park
+ St. James's Park