Alir3z4 / Alir3z4/html2text

Infinite recursion with certain html

Đang mở
#420 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
2.2k
Fork
296
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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`

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.