Alir3z4 / Alir3z4/html2text

Semicolon in Text with &#.

Open
#369 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
2.2k
Forks
296
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.