def _text_from_html(html): h2t = html2text.HTML2Text() h2t.ignore_links = True return h2t.handle(html)