(cls, matchobj)
return "&%s;" % entity
Used with a regular expression to substitute the
        appropriate XML entity for an XML special character.
Used with a regular expression to substitute the
        appropriate XML entity for an XML special character.
Used with a regular expression to substitute the appropriate XML entity for an XML special character .
def _substitute_xml_entity(cls, matchobj):
        """Used with a regular expression to substitute the
        appropriate XML entity for an XML special character."""
        entity = cls.CHARACTER_TO_XML_ENTITY[matchobj.group(0)]
        return "&%s;" % entity
def _substitute_xml_entity ( cls , matchobj ) : entity = cls . CHARACTER_TO_XML_ENTITY [ matchobj . group ( 0 ) ] return "&%s;" % entity