use re.sub, html2text has memory issue