From e9e1a7ca73d6705f08d6522a9a9063aa87b6a901 Mon Sep 17 00:00:00 2001
From: Rolf Niepraschk <Rolf.Niepraschk@ptb.de>
Date: Mon, 30 Nov 2020 14:04:11 +0100
Subject: [PATCH] CDATA entries back again

---
 setup.py                           | 4 +++-
 templates/xml/calibration_item.xml | 4 ++++
 templates/xml/core_data.xml        | 2 ++
 templates/xml/used_methods.xml     | 2 ++
 4 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/setup.py b/setup.py
index 5fcbaed..ba4a8fb 100644
--- a/setup.py
+++ b/setup.py
@@ -151,7 +151,9 @@ setup(
     install_requires=[
     'lxml',
     'prettierfier',
-    'flask'
+    'flask',
+    'flask_cors',
+    'requests'
     ],  # Optional
 
     # List additional groups of dependencies here (e.g. development
diff --git a/templates/xml/calibration_item.xml b/templates/xml/calibration_item.xml
index aa494ec..63c627b 100644
--- a/templates/xml/calibration_item.xml
+++ b/templates/xml/calibration_item.xml
@@ -23,9 +23,11 @@
     <dcc:description>
       {%- for j in i['description'] %}
       <dcc:content lang="{{j.lang}}">
+        <![CDATA[
         {%- for k in j.content %}
         {{k|safe}}
         {% endfor -%}
+        ]]>
       </dcc:content>
       {% endfor -%}
     </dcc:description>
@@ -48,9 +50,11 @@
         <dcc:description>
           {%- for k in j['description'] %}
           <dcc:content lang="{{k.lang}}">
+            <![CDATA[
             {%- for l in k.content %}
             {{l|safe}}
             {% endfor -%}
+            ]]>
           </dcc:content>
           {% endfor -%}            
         </dcc:description>          
diff --git a/templates/xml/core_data.xml b/templates/xml/core_data.xml
index 80719db..f2094cb 100644
--- a/templates/xml/core_data.xml
+++ b/templates/xml/core_data.xml
@@ -20,9 +20,11 @@
           <dcc:description>
             {%- for j in i['description'] %}
             <dcc:content lang="{{j.lang}}">
+              <![CDATA[
               {%- for k in j.content %}
               {{k|safe}}
               {% endfor -%}
+              ]]>
             </dcc:content>
             {% endfor -%}            
           </dcc:description>          
diff --git a/templates/xml/used_methods.xml b/templates/xml/used_methods.xml
index 2fccbec..ceb2fe9 100644
--- a/templates/xml/used_methods.xml
+++ b/templates/xml/used_methods.xml
@@ -13,9 +13,11 @@
     <dcc:description>
       {%- for j in i['description'] %}
       <dcc:content lang="{{j.lang}}">
+        <![CDATA[
         {%- for k in j.content %}
         {{k|safe}}
         {% endfor -%}
+        ]]>
       </dcc:content>
       {% endfor -%}
     </dcc:description>    
-- 
GitLab