change html2text parameters to get unicode chars and to skip internal links
This commit is contained in:
parent
3027c1ece2
commit
d261317303
1 changed files with 4 additions and 1 deletions
|
|
@ -45,7 +45,10 @@ def local2utc(d):
|
||||||
return d
|
return d
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from html2text import html2text
|
import html2text as h2t
|
||||||
|
h2t.UNICODE_SNOB = 1
|
||||||
|
h2t.SKIP_INTERNAL_LINKS = True
|
||||||
|
html2text = h2t.html2text
|
||||||
except ImportError:
|
except ImportError:
|
||||||
def html2text(s):
|
def html2text(s):
|
||||||
return s
|
return s
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue