def METHOD_NAME(m):
    entity = m.group(1)
    if entity in html.entities.name2codepoint:
        return chr(html.entities.name2codepoint[entity])
    return " "  # Unknown entity: We replace with a space.