Fix for Issue #47

This commit is contained in:
Miroslav Stampar
2012-07-01 11:05:04 +02:00
parent 21d9ae0a2c
commit d7cd55fb28
3 changed files with 2 additions and 21 deletions

View File

@@ -12,7 +12,6 @@ from xml.parsers.expat import ExpatError
from extra.prettyprint import prettyprint
from lib.core.common import getUnicode
from lib.core.common import restoreDumpMarkedChars
from lib.core.data import conf
from lib.core.data import kb
from lib.core.data import logger
@@ -125,7 +124,7 @@ class XMLDump:
if data is None :
return self.__doc.createTextNode(u'')
else :
escaped_data = saxutils.escape(self.__formatString(data), ENTITIES)
escaped_data = saxutils.escape(data, ENTITIES)
return self.__doc.createTextNode(escaped_data)
def __createAttribute(self,attrName,attrValue):
@@ -140,9 +139,6 @@ class XMLDump:
attr.nodeValue = getUnicode(attrValue)
return attr
def __formatString(self, inpStr):
return restoreDumpMarkedChars(getUnicode(inpStr))
def string(self, header, data, sort=True):
'''
Adds string element to the xml.