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 2025Releases
latest 37-
2.6.030 Jun 2025Nothing published for this version
-
2.5.019 Dec 2024Nothing published for this version
-
2.4.418 May 2024Commits, not release notes
This project publishes no release notes. Between
2.4.3and2.4.4there 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
-
2.4.316 May 2024Commits, not release notes
This project publishes no release notes. Between
2.4.2and2.4.3there 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
-
2.4.205 May 2024Commits, not release notes
This project publishes no release notes. Between
2.4.1and2.4.2there were 2 commits, 2 of them substantive:- Normalize unicode earlier
- html-sanitizer 2.4.2
-
2.4.101 Apr 2024Commits, not release notes
This project publishes no release notes. Between
2.3.1and2.4.1there were 4 commits, 4 of them substantive:- Use dependency
lxml[html_clean](#39) - html-sanitizer 2.4
- Drop
lxml[html_clean]and uselxml_html_clean(#41) - html-sanitizer 2.4.1
- Use dependency
-
2.4.001 Apr 2024Nothing published for this version
-
2.3.110 Mar 2024Commits, not release notes
This project publishes no release notes. Between
1.9.3and2.3.1there 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.
-
2.3.007 Feb 2024Nothing published for this version
-
2.2.003 Jul 2023Nothing published for this version
-
2.1.029 Jun 2023Nothing published for this version
-
2.0.028 Jun 2023Nothing published for this version
-
1.9.315 Jan 2022Commits, not release notes
This project publishes no release notes. Between
1.9.2and1.9.3there 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
-
1.9.213 Dec 2021Commits, not release notes
This project publishes no release notes. Between
1.9.1and1.9.2there 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
-
1.9.128 May 2020Commits, not release notes
This project publishes no release notes. Between
1.7.3and1.9.1there 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
-
1.9.020 Jan 2020Nothing published for this version
-
1.8.021 Nov 2019Nothing published for this version
-
1.7.308 Aug 2019Commits, not release notes
This project publishes no release notes. Between
1.7.2and1.7.3there 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
-
1.7.226 Apr 2019Nothing published for this version
-
1.7.119 Apr 2019Nothing published for this version
-
1.7.019 Feb 2019Nothing published for this version
-
1.6.406 Feb 2019Nothing published for this version
-
1.6.304 Nov 2018Nothing published for this version
-
1.6.221 Aug 2018Nothing published for this version
-
1.6.131 Jul 2018Nothing published for this version
-
1.6.029 Jun 2018Nothing published for this version
-
1.5.001 Jun 2018Nothing published for this version
-
1.4.029 Mar 2018Nothing published for this version
-
1.3.022 Sep 2017Nothing published for this version
-
1.2.108 Jun 2017Nothing published for this version
-
1.2.025 May 2017Nothing published for this version
-
1.1.412 May 2017Nothing published for this version
-
1.1.310 May 2017Nothing published for this version
-
1.1.203 May 2017Nothing published for this version
-
1.1.102 May 2017Nothing published for this version
-
1.1.002 May 2017Nothing published for this version
-
1.0.002 May 2017Nothing published for this version