Closed chen-xiao-dong closed 4 years ago
html2text --2019 08 11
h = html2text.HTML2Text() h.body_width = 0 h.ignore_emphasis=True print(h.handle("<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head> <body lang="ES-TRAD" link="#0563C1" vlink="#954F72"> <div class="WordSection1"> <p class="MsoNormal"><span style="font-family:"Arial",sans-serif; color:#1F497D">Hi Mayank,</span></p> <p class="MsoNormal"><span style="font-family:"Arial",sans-serif; color:#1F497D"> </span></p> <p class="MsoNormal"><span lang="EN-GB" style="font-family:"Arial",sans-serif; color:#1F497D">May you share the Release Notes please?</span></p>"))
python --version
The extra newline is from the line:
<p class="MsoNormal"><span style="font-family:"Arial",sans-serif; color:#1F497D"> </span></p>
This looks to be working as expected to me.
html2text --2019 08 11
python --version