• [Python-announce] JustHTML 1.6.0 released

    From =?UTF-8?Q?Emil_Stenstr=C3=B6m?=@emil@emilstenstrom.se to comp.lang.python.announce on Sat Feb 7 12:05:46 2026
    From Newsgroup: comp.lang.python.announce

    Subject: JustHTML 1.6.0 — pure-Python HTML5 parser (CSS selectors + sanitizer)

    Install: pip install justhtml
    Repo: https://github.com/EmilStenstrom/justhtml
    Docs: https://emilstenstrom.github.io/justhtml/

    Example (CSS selectors):
    from justhtml import JustHTML
    doc = JustHTML("<div><p class='x'>Hi</p><p>Bye</p></div>", fragment=True) print(doc.query_one("div p.x").to_html(pretty=False))
    # <p class="x">Hi</p>

    License: MIT
    Contact: emil@emilstenstrom.se

    <P><A HREF="https://emilstenstrom.github.io/justhtml/">JustHTML 1.6.0</A> - Pure-Python
    HTML5 parser with CSS selectors and built-in sanitization. (07-Feb-26)

    --
    Emil Stenström

    --- Synchronet 3.21b-Linux NewsLink 1.2