def METHOD_NAME(match):
    tag = match.group("tag")
    content = match.group("content")
    content = LIST_ITEM_RE.sub(lambda m: "<li>%s</li>" % m.group(1), content)
    return "<%s>%s</%s>" % (tag, content, tag)