Alir3z4 / Alir3z4/html2text

Semicolon in Text with &#.

未關閉
#369 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Python
星號
2.2k
分支
296
PR 合併指標
30 天內沒有已合併 PR

描述

html2text version 2020.1.16
Python version 3.9.5

```python3
import html2text

test = html2text.HTML2Text()
text = test.handle("

Sample text K&N. Sample text.

")
print(text)
```

**output:**
Sample text K&N.**;** Sample text.

Hi,

I noticed that the module inserts a simcolon in the text when converting a certain string, which I don't want. It doesn't matter which character comes after the &. Is this intentional and is it possible to work around this or is this a bug?

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。