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

Property Value
Distribution Ubuntu 16.04 LTS (Xenial Xerus)
Repository Ubuntu Universe amd64
Package name python-bleach
Package version 1.4.2
Package release 1
Package architecture all
Package type deb
Installed size 87 B
Download size 18.33 KB
Official Mirror
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_1.4.2-1_all.deb 1.4.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_1.4.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




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-blessings_1.6-2build1_all.deb simple but powerful module to manage terminal color and styling (Python 2)
python-blist_1.3.6-4build2_amd64.deb List-like type for Python with better asymptotic performance
python-blockdiag_1.4.7-2ubuntu1_all.deb generate block-diagram image file from spec-text file
python-bloom_0.5.20-1_all.deb Bloom is a release automation tool from Robot OS
python-bloomfilter_2.0-1_amd64.deb Native Python implementation of the Bloom filter probabilistic data structure
python-bluez_0.22-1_amd64.deb Python wrappers around BlueZ for rapid bluetooth development
python-bobo_0.2.2-3build1_all.deb Web application framework for the impatient
python-bond_1.7.16-3_all.deb Messages related to Robot OS bond_core - Python
python-bondpy_1.7.16-3_amd64.deb Python implementation of bond
python-bootstrapform-doc_3.1.0-6_all.deb generate twitter-bootstrap form output for django form - doc
python-bootstrapform_3.1.0-6_all.deb generate twitter-bootstrap form output for django form - Python 2.x
python-boto3_1.2.2-2_all.deb Python interface to Amazon's Web Services - Python 2.x
python-botocore_1.3.23-1_all.deb Low-level, data-driven core of boto 3 (Python 2)
python-bottle-doc_0.12.7-1_all.deb fast and simple WSGI-framework for Python - documentation
python-bottle_0.12.7-1_all.deb fast and simple WSGI-framework for Python