import html
import re
def replace_html(src_src):
replace_str=str.replace(src_src," "," ")
replace_str=str.replace(replace_str,"<",'<')
replace_str=str.replace(replace_str,">",'>')
replace_str=str.replace(replace_str,"&",'&')
replace_str=str.replace(replace_str,""",'"')
replace_str=str.replace(replace_str,"'","'")
replace_str=str.replace(replace_str,"¢",'¢')
replace_str=str.replace(replace_str,"£",'£')
replace_str=str.replace(replace_str,"¥",'¥')
replace_str=str.replace(replace_str,"€",'€')
replace_str=str.replace(replace_str,"§",'§')
replace_str=str.replace(replace_str,"©",'©')
replace_str=str.replace(replace_str,"®",'®')
replace_str=str.replace(replace_str,"™;",'™')
replace_str=str.replace(replace_str,"×",'×')
replace_str=str.replace(replace_str,"÷",'÷')
replace_str=str(html.unescape(src_src))
#replace_str=replace_str.replace(' ','{|}').replace(' ','{|}').replace('、','{|}')
replace_str=re.sub('[\s\u3002|\uff1f|\uff01|\uff0c|\u3001|\uff1b|\uff1a|\u201c|\u201d|\u2018|\u2019|\uff08|\uff09|\u300a|\u300b|\u3010|\u3011|\u007e]+','{|}',replace_str)
replace_str=re.sub('^\{\|\}','',replace_str)
replace_str=re.sub('\{\|\}$','',replace_str)
return replace_str