From d261317303f73529538ebf0cdcdc266fca181874 Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Mon, 12 Apr 2010 14:22:03 +0200 Subject: [PATCH] change html2text parameters to get unicode chars and to skip internal links --- weboob/tools/misc.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/weboob/tools/misc.py b/weboob/tools/misc.py index e7b75db9..38c7d853 100644 --- a/weboob/tools/misc.py +++ b/weboob/tools/misc.py @@ -45,7 +45,10 @@ def local2utc(d): return d try: - from html2text import html2text + import html2text as h2t + h2t.UNICODE_SNOB = 1 + h2t.SKIP_INTERNAL_LINKS = True + html2text = h2t.html2text except ImportError: def html2text(s): return s