def METHOD_NAME(s):
    """
    Replace <a ..>xx</a> to xx and wrap content with <div></div>.
    """
    patt = '<a.*?>(.+?)</a>'
    def repl(matchobj):
        return matchobj.group(1)
    return re.sub(patt, repl, s)