python-bleach - whitelist-based HTML-sanitizing library (Python 2)

Property Value
Distribution Ubuntu 18.04 LTS (Bionic Beaver)
Repository Ubuntu Universe i386
Package filename python-bleach_2.1.2-1_all.deb
Package name python-bleach
Package version 2.1.2
Package release 1
Package architecture all
Package type deb
Category universe/python
License -
Maintainer Ubuntu Developers <>
Download size 20.57 KB
Installed size 93.00 KB
Bleach is an HTML sanitizing library that escapes or strips markup and
attributes based on a white list. Bleach can also linkify text safely,
applying filters that Django's urlize filter cannot, and optionally setting
rel attributes, even on links already in the text.
Bleach is intended for sanitizing text from untrusted sources. If you find
yourself jumping through hoops to allow your site administrators to do lots of
things, you're probably outside the use cases. Either trust those users, or
Because it relies on html5lib, Bleach is as good as modern browsers at dealing
with weird, quirky HTML fragments. And any of Bleach's methods will fix
unbalanced or mis-nested tags.
This is the Python 2 version of the package.


Package Version Architecture Repository
python-bleach_2.1.2-1_all.deb 2.1.2 all Ubuntu Universe
python-bleach - - -


Name Value
python-html5lib -
python-six -
python:any >= 2.7.5-5~
python:any << 2.8


Type URL
Binary Package python-bleach_2.1.2-1_all.deb
Source Package python-bleach

Install Howto

  1. Update the package index:
    # sudo apt-get update
  2. Install python-bleach deb package:
    # sudo apt-get install python-bleach




2018-01-09 - Scott Kitterman <>
python-bleach (2.1.2-1) unstable; urgency=medium
* New upstream release
* Bump standards-version to 4.1.3 without further change
* Bump minimum debhelper version to 9 to match compat
2017-03-10 - Scott Kitterman <>
python-bleach (2.0-1) unstable; urgency=medium
* New upstream release (Closes: #844943)
- Update minimum htmlib5 version requirement
- Update debian/copyright
- Drop override of dh_auto_test and add pytest/3 and pytest/3-runner to
build-depends so tests still run
- Drop obsolete build-depends on python/3-nose
* Agreed maintainer change to DPMT
- Updated Vcs-* fields in debian/control
2016-02-22 - Per Andersson <>
python-bleach (1.4.2-1) unstable; urgency=low
[ Per Andersson ]
* Bump debhelper compat level to 9 (level 8 is required in Build-Depends).
* Add extend-diff-ignore for in debian/source/options.
* d/watch: Use, githubredir is deprecated.
* Use my address.
* Use HTTPS protocol for Homepage and Vcs-* fields.
[ Christopher Baines ]
* New upstream release.
- Includes fix upstream fix for #798441 (Closes: #798441).
* Up standards version to 3.9.6, no changes required.
2014-02-14 - Per Andersson <>
python-bleach (1.4-1) unstable; urgency=low
* New upstream release
- License changed to Apache License 2.0
- Add python*-six to Build-Dependends
* Shipping both python2 and python3 packages
- Add python3-html5lib to Build-Dependends
* Running tests during build
- Add python*-nose Build-Dependends
* Packaging license changed to Apache License 2.0
* Bumped Standards-Version to 3.9.5, no changes needed
* Add common doc package
- Binary packages suggests this package
- Add python*-sphinx to Build-Depends
2013-06-09 - Per Andersson <>
python-bleach (1.2.2-1) unstable; urgency=low
* Initial release (Closes: #686902)

See Also

Package Description
python-blessed_1.14.2-3_all.deb Thin, practical wrapper around terminal capabilities in Python2
python-blessings_1.6-2build1_all.deb simple but powerful module to manage terminal color and styling (Python 2)
python-blist_1.3.6-4build4_i386.deb List-like type for Python with better asymptotic performance
python-blockdiag_1.5.3+dfsg-5.1_all.deb generate block-diagram image file from spec-text file
python-bloom_0.6.1-1_all.deb Bloom is a release automation tool from Robot OS (Python 2)
python-bloomfilter_2.0-1_i386.deb Native Python implementation of the Bloom filter probabilistic data structure
python-blosc-doc_1.4.4+ds1-5_all.deb Python bindings for the Blosc meta-compressor (docs)
python-blosc_1.4.4+ds1-5_i386.deb Python bindings for the Blosc meta-compressor
python-bluez_0.22-1_i386.deb Python wrappers around BlueZ for rapid bluetooth development
python-bobo_0.2.2-3build1_all.deb Web application framework for the impatient
python-boltons_17.1.0-1_all.deb set of pure-Python utilities (Python 2)
python-bond_1.8.1-2_all.deb Messages related to Robot OS bond_core - Python
python-bondpy_1.8.1-2_i386.deb Python implementation of bond
python-bootstrapform-doc_3.3-1_all.deb generate twitter-bootstrap form output for django form - doc
python-bootstrapform_3.3-1_all.deb generate twitter-bootstrap form output for django form - Python 2.x