How to Install and Uninstall python-bleach Package on Ubuntu 16.04 LTS (Xenial Xerus)

Last updated: July 05,2024

1. Install "python-bleach" package

Please follow the guidelines below to install python-bleach on Ubuntu 16.04 LTS (Xenial Xerus)

$ sudo apt update $ sudo apt install python-bleach

2. Uninstall "python-bleach" package

This tutorial shows how to uninstall python-bleach on Ubuntu 16.04 LTS (Xenial Xerus):

$ sudo apt remove python-bleach $ sudo apt autoclean && sudo apt autoremove

3. Information about the python-bleach package on Ubuntu 16.04 LTS (Xenial Xerus)

Package: python-bleach
Priority: optional
Section: universe/python
Installed-Size: 87
Maintainer: Ubuntu Developers
Original-Maintainer: Per Andersson
Architecture: all
Version: 1.4.2-1
Depends: python-html5lib, python-six, python:any (<< 2.8), python:any (>= 2.7.5-5~)
Suggests: python-bleach-doc
Filename: pool/universe/p/python-bleach/python-bleach_1.4.2-1_all.deb
Size: 18766
MD5sum: 8040593693ca7120b2ad068805815491
SHA1: 0d515c743e8d493e8eeb15d4536a4f1e3629053f
SHA256: ae79268a045f2068247bf98ea7a84073d894c61bd43b8d3c2a95e8ccb02ce940
Description-en: whitelist-based HTML-sanitizing library (Python 2)
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
don't.
.
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.
Description-md5: b04e30beb15ccdf70a01c8f1b88bef3a
Homepage: https://github.com/jsocol/bleach/
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu