def _convert_entity(m):
    if m.group(1) == "#":
        try:
            return unichr(int(m.group(2)))
        except ValueError:
            return "&#%s;" % m.group(2)
    try:
        return _HTML_UNICODE_MAP[m.group(2)]
    except __HOLE__:
        return "&%s;" % m.group(2)
dataset/ETHPy150Open limodou/uliweb/uliweb/core/template.py/_convert_entity