diff --git a/resources/lib/helper/utils.py b/resources/lib/helper/utils.py
index 19411b1b..058349c1 100644
--- a/resources/lib/helper/utils.py
+++ b/resources/lib/helper/utils.py
@@ -293,9 +293,9 @@ def indent(elem, level=0):
 def write_xml(content, file):
     with open(file, 'w') as infile:
 
+        # replace apostrophes with double quotes only in xml keys, not texts
         def replace_apostrophes(match):
             return match.group(0).replace("'", '"')
-
         content = re.sub("<(.*?)>", replace_apostrophes, content)
 
         content = content.replace('?>', ' standalone="yes" ?>', 1)