add filterXMLString
[vuplus_dvbapp] / lib / python / Tools / XMLTools.py
index 0551362..9f316d7 100644 (file)
@@ -23,3 +23,6 @@ def mergeText(nodelist):
                        rc = rc + node.data
        return rc
 
+def filterXMLString(text):
+       # TODO: better solutions?
+       return text.replace('"', "&quot;").replace('<', '&lt;')