示例#1
0
 def escapeit(self, sval, EXTRAS=None):
     # note, xmlescape and unescape do not work with utf-8 bytestrings
     sval = unicode_str(sval)
     if EXTRAS:
         res = xmlescape(unescapeit(sval), EXTRAS)
     else:
         res = xmlescape(unescapeit(sval))
     return res
示例#2
0
def escapeit(sval, EXTRAS=None):
    if EXTRAS:
        return xmlescape(unescapeit(sval), EXTRAS)
    return xmlescape(unescapeit(sval))
示例#3
0
def escapeit(sval, EXTRAS=None):
    if EXTRAS:
        return xmlescape(unescapeit(sval), EXTRAS)
    return xmlescape(unescapeit(sval))