Files
Sandeep Singh 599441ef15 fix: HTML parser panic protection with multiple fallback (#2330)
fix: enhance HTML parser panic protection with multiple fallback strategies

- Add ultra-aggressive HTML sanitization to reduce nesting depth
- Implement size limiting (1MB) to prevent processing huge documents
- Add plain text extraction fallback for complex HTML structures
- Enhance panic recovery with comprehensive error handling
- Remove deeply nestable elements (div, span, ul, ol, li) from sanitizer
- Add comprehensive test coverage for edge cases

Resolves HTML parser panic: 'html: open stack of elements exceeds 512 nodes'
that occurred after switching to html-to-markdown/v2 library in PR #2255
2025-12-06 23:39:09 +05:30
..
2025-03-11 00:04:31 +08:00
2025-03-11 00:04:31 +08:00
2025-08-28 17:04:33 +02:00
2025-03-11 00:04:31 +08:00
2025-03-11 00:04:31 +08:00
2025-03-11 00:04:31 +08:00
2025-11-18 16:46:15 +04:00