change html2text parameters to get unicode chars and to skip internal links

This commit is contained in:
Romain Bignon 2010-04-12 14:22:03 +02:00
commit d261317303

View file

@ -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