PackageTrack
Sign in Get early access

html-sanitizer

HTML sanitizer

2.6.0 917K downloads/mo #4729 most downloaded on PyPI matthiask/html-sanitizer

What this package is like to depend on

Last release 1 years ago

30 Jun 2025

Release timing varies

gaps range from 1 weeks to 1.5 years

This project publishes no release notes

the list below is its commits, not an announcement

Nothing withdrawn

no release was ever pulled

9 years old

37 releases · first in 2017

0 releases in the last 12 months

see the full history below

Release timeline

37 releases · May 2017 to Jun 2025
2018 2019 2020 2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 37
  1. 2.6.0 30 Jun 2025

    Nothing published for this version

  2. 2.5.0 19 Dec 2024

    Nothing published for this version

  3. 2.4.4 18 May 2024
    Commits, not release notes

    This project publishes no release notes. Between 2.4.3 and 2.4.4 there were 3 commits, 3 of them substantive:

    • Use an early return, it's easier to read
    • Fix the strange whitespace handling of tails when merging elements
    • html-sanitizer 2.4.4
  4. 2.4.3 16 May 2024
    Commits, not release notes

    This project publishes no release notes. Between 2.4.2 and 2.4.3 there were 4 commits, 4 of them substantive:

    • Add a failing unittest for #44
    • Reformat the pyproject.toml
    • Fix #44: Fix an edge case while merging tags
    • html-sanitizer 2.4.3
  5. 2.4.2 05 May 2024
    Commits, not release notes

    This project publishes no release notes. Between 2.4.1 and 2.4.2 there were 2 commits, 2 of them substantive:

    • Normalize unicode earlier
    • html-sanitizer 2.4.2
  6. 2.4.1 01 Apr 2024
    Commits, not release notes

    This project publishes no release notes. Between 2.3.1 and 2.4.1 there were 4 commits, 4 of them substantive:

    • Use dependency lxml[html_clean] (#39)
    • html-sanitizer 2.4
    • Drop lxml[html_clean] and use lxml_html_clean (#41)
    • html-sanitizer 2.4.1
  7. 2.4.0 01 Apr 2024

    Nothing published for this version

  8. 2.3.1 10 Mar 2024
    Commits, not release notes

    This project publishes no release notes. Between 1.9.3 and 2.3.1 there were 24 commits, 23 of them substantive:

    • Add pre-commit
    • Update our lxml dependency because of strange changes in cleaning output
    • Remove the lint action
    • Update hooks
    • Newer Python versions
    • Modernize
    • Manually overriding all whitespace replacement if someone wants to keep Typographic whitespaces (#24)
    • Make ruff happier
    • CHANGELOG, version updates
    • This is necessary
    • html-sanitizer 2.0
    • Disallow unexpected data types
    • html-sanitizer 2.1
    • Whitespaces are mantained even after a tag (#32)
    • html-sanitizer 2.2
    • Refs #34: Add a test for the <img> tag
    • Hmm
    • Hooks
    • Add another whitespace preservation test
    • Prevent space between merged tags of the same type (#36)

    …and 3 more.

  9. 2.3.0 07 Feb 2024

    Nothing published for this version

  10. 2.2.0 03 Jul 2023

    Nothing published for this version

  11. 2.1.0 29 Jun 2023

    Nothing published for this version

  12. 2.0.0 28 Jun 2023

    Nothing published for this version

  13. 1.9.3 15 Jan 2022
    Commits, not release notes

    This project publishes no release notes. Between 1.9.2 and 1.9.3 there were 2 commits, 2 of them substantive:

    • Fix #21: Change a overspecific test to not depend on the amount of whitespace
    • HTML sanitizer 1.9.3
  14. 1.9.2 13 Dec 2021
    Commits, not release notes

    This project publishes no release notes. Between 1.9.1 and 1.9.2 there were 17 commits, 17 of them substantive:

    • Add Python 3.9 to the matrix
    • Run black again
    • Create test.yml
    • Update test.yml
    • Drop support for Python 2.7
    • Run tests using -m unittest
    • Add a linting workflow
    • Remove the subTest-unavailable fallback, subTest is always available now that we dropped old Python versions
    • Add security-related tests, just to try out what happens
    • List markers: Leave non-breaking spaces alone
    • One less complaint
    • Declarative setup, raise a few minimum versions
    • Just use tox -e style for linting on GitHub too
    • Add Python 3.10
    • Test the sanitization of data attributes
    • Bump the lxml dependency because of a security issue
    • HTML sanitizer 1.9.2
  15. 1.9.1 28 May 2020
    Commits, not release notes

    This project publishes no release notes. Between 1.7.3 and 1.9.1 there were 22 commits, 18 of them substantive:

    • Drop Python 3.4 from Travis
    • Fix DOM Clobbering
    • Convert @id to @name on anchors
    • Add my email to the README for potential security problems
    • HTML sanitizer 1.8
    • Optionally remove style tags
    • test python 3.8
    • add changelog line
    • don't change line that's not mine
    • Report missing lines instead of generating HTML
    • Blackify the code once
    • Mention Python 3.8 in the CHANGELOG
    • Test what happens with style attributes when allowing style tags
    • Add a style checking step
    • Install flake8 and black before checking the code...
    • HTML sanitizer 1.9
    • Regex should be compiled
    • HTML sanitizer 1.9.1
  16. 1.9.0 20 Jan 2020

    Nothing published for this version

  17. 1.8.0 21 Nov 2019

    Nothing published for this version

  18. 1.7.3 08 Aug 2019
    Commits, not release notes

    This project publishes no release notes. Between 1.7.2 and 1.7.3 there were 5 commits, 4 of them substantive:

    • Allow to keep typographic whitespace.
    • Blackified code.
    • Use Unicode regex in Python 2.
    • HTML sanitizer 1.7.3
  19. 1.7.2 26 Apr 2019

    Nothing published for this version

  20. 1.7.1 19 Apr 2019

    Nothing published for this version

  21. 1.7.0 19 Feb 2019

    Nothing published for this version

  22. 1.6.4 06 Feb 2019

    Nothing published for this version

  23. 1.6.3 04 Nov 2018

    Nothing published for this version

  24. 1.6.2 21 Aug 2018

    Nothing published for this version

  25. 1.6.1 31 Jul 2018

    Nothing published for this version

  26. 1.6.0 29 Jun 2018

    Nothing published for this version

  27. 1.5.0 01 Jun 2018

    Nothing published for this version

  28. 1.4.0 29 Mar 2018

    Nothing published for this version

  29. 1.3.0 22 Sep 2017

    Nothing published for this version

  30. 1.2.1 08 Jun 2017

    Nothing published for this version

  31. 1.2.0 25 May 2017

    Nothing published for this version

  32. 1.1.4 12 May 2017

    Nothing published for this version

  33. 1.1.3 10 May 2017

    Nothing published for this version

  34. 1.1.2 03 May 2017

    Nothing published for this version

  35. 1.1.1 02 May 2017

    Nothing published for this version

  36. 1.1.0 02 May 2017

    Nothing published for this version

  37. 1.0.0 02 May 2017

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive