discovered 03 Aug 2026
html-text
→ View on GitHubhtml-text is a Python library designed to extract and clean text from HTML documents while omitting non-visible elements like styles and scripts. Its primary use case is to provide a more user-friendly text output by normalizing whitespace and intelligently adding newlines, making the extracted text resemble the rendered output seen in web browsers. Notable features include support for both raw HTML and parsed lxml elements, as well as customizable newline handling options for better text formatting.