def METHOD_NAME(self, m, data):
    """Convert the char to an escaped character."""
    char = m.group(1)
    if char in ('<', '>', '&'):
        if char == '<':
            char = '&lt;'
        elif char == '>':
            char = '&gt;'
        elif char == '&':
            char = '&amp;'
        escape = self.md.htmlStash.store(char)
    elif self.nbsp and char == ' ':
        escape = self.md.htmlStash.store('&nbsp;')
    elif char in (STX, ETX):
        escape = char
    else:
        escape = '%s%s%s' % (md_util.STX, util.get_ord(char), md_util.ETX)
    return escape, m.start(0), m.end(0)