From: Andreas Monzner Date: Fri, 3 Mar 2006 15:22:31 +0000 (+0000) Subject: rename FilterXMLString to StringToXML X-Git-Tag: 2.6.0~3919 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/0d00868acef330b30c6505b199cec32b1105ece2 rename FilterXMLString to StringToXML --- diff --git a/RecordTimer.py b/RecordTimer.py index a5c179c4..faec5344 100644 --- a/RecordTimer.py +++ b/RecordTimer.py @@ -12,7 +12,7 @@ from Screens.SubserviceSelection import SubserviceSelection import NavigationInstance from time import localtime -from Tools.XMLTools import elementsWithTag, mergeText, filterXMLString +from Tools.XMLTools import elementsWithTag, mergeText, stringToXML from ServiceReference import ServiceReference # ok, for descriptions etc we have: @@ -291,10 +291,10 @@ class RecordTimer(timer.Timer): list.append('', '>').replace("'", '''). replace('"', '"') +def stringToXML(text): + return str.replace('&', '&').replace('<', '<').replace('>', '>').replace("'", ''').replace('"', '"')