Infinite recursion with certain html
未关闭
- 主要语言
- 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 还没有评估数据。