573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
|
if s.find("/") < 1:
s = "audio/" + s
#
return s
# remove SGML/XML entities
def entity_decode(self, s):
return xml.sax.saxutils.unescape(s)
# convert special characters to &xx; escapes
def xmlentities(self, s):
return xml.sax.saxutils.escape(s)
# Extracts integer from string
def to_int(self, s):
|
|
|
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
|
if s.find("/") < 1:
s = "audio/" + s
#
return s
# remove SGML/XML entities
def entity_decode(self, s):
return xml.sax.saxutils.unescape(s).replace(" ", " ")
# convert special characters to &xx; escapes
def xmlentities(self, s):
return xml.sax.saxutils.escape(s)
# Extracts integer from string
def to_int(self, s):
|