Alir3z4 / Alir3z4/html2text

Infinite recursion with certain html

オープン
#420 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
2.2k
フォーク
296
PR マージ指標
30日以内にマージされた PR はありません

説明

HTML in the attached file below causes infinite loop of some kind, uses all CPU and process hangs indefinitely.

[hubspot.txt](https://github.com/user-attachments/files/16380213/hubspot.txt)

- Version by `2024.2.26`
- Test script
```
def convert_to_text():
converter = html2text.HTML2Text()
# html from http://www.hubspot.com
with open("hubspot.txt", "r") as f:
text = f.read()
print("Running html2text...")
text = converter.handle(text)
# hangs here and uses all CPU.
print(text)

```
- Python version `3.11`

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。