Bleach

From Free Software Directory
 
Jump to: navigation, search


[edit]

Bleach

http://github.com/jsocol/bleach/
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.





Licensing

License

Verified by

Verified on

Notes

License

Other

Verified by

Debian: Per Andersson <avtobiff@gmail.com>

Verified on

14 February 2014

Notes

License: apache-2.0




Leaders and contributors

Resources and communication

AudienceResource typeURI
Downloadhttp://github.com/jsocol/bleach/
Debian (Ref) (R)https://tracker.debian.org/pkg/python-bleach
Python (Ref)https://pypi.org/project/bleach
Ruby (Ref)https://rubygems.org/gems/bleach


Software prerequisites




Entry







"Python (Ref)" is not in the list (General, Help, Bug Tracking, Support, Developer) of allowed values for the "Resource audience" property.


"Ruby (Ref)" is not in the list (General, Help, Bug Tracking, Support, Developer) of allowed values for the "Resource audience" property.


"Debian (Ref) (R)" is not in the list (General, Help, Bug Tracking, Support, Developer) of allowed values for the "Resource audience" property.








Date 2015-07-17
Source Debian
Source link http://packages.debian.org/sid/python-bleach

[[Category:]]



Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the page “GNU Free Documentation License”.

The copyright and license notices on this page only apply to the text on this page. Any software or copyright-licenses or other similar notices described in this text has its own copyright notice and license, which can usually be found in the distribution or license text itself.