soup = html.unescape(value) #value待转义文本 covert_txt = BeautifulSoup(str(soup ),'html5lib').text.strip()