bleach VS ammonia

Compare bleach vs ammonia and see what are their differences.

bleach

Bleach is an allowed-list-based HTML sanitizing library that escapes or strips markup and attributes (by mozilla)

ammonia

Repair and secure untrusted HTML (by rust-ammonia)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
bleach ammonia
6 2
2,625 474
0.8% 5.7%
6.1 6.8
about 1 month ago about 1 month ago
Python Rust
GNU General Public License v3.0 or later Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

bleach

Posts with mentions or reviews of bleach. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-06-06.

ammonia

Posts with mentions or reviews of ammonia. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-06-06.
  • What's your favorite alternative to bleach for sanitizing HTML?
    3 projects | /r/django | 6 Jun 2023
    nh3 which is a python binding for the Rust-based ammonia
  • How to write Python extensions in Rust with PyO3
    4 projects | news.ycombinator.com | 28 Feb 2023
    For a somewhat more "productive" hello world (as in a very simple application which does useful things), there's nh3 (https://github.com/messense/nh3) which is a pretty simple wrapper around ammonia (https://github.com/rust-ammonia/ammonia), an HTML sanitisation library. The lib.rs is all of 125 SLOC (and about half of that is owing to the handling of `attribute_filter` which is pretty demanding on the glue layer: https://github.com/messense/nh3/commit/72be3e6728b7ceb9185e7...).

What are some alternatives?

When comparing bleach and ammonia you can also consider the following projects:

lxml - The lxml XML toolkit for Python

syntect - Rust library for syntax highlighting using Sublime Text syntax definitions.

MarkupSafe - Safely add untrusted strings to HTML/XML markup.

html-sanitizer - Allowlist-based HTML cleaner

xhtml2pdf - A library for converting HTML into PDFs using ReportLab

rust_python_package_example - Example of a Rust compiled Python 3 package

html5lib - Standards-compliant library for parsing and serializing HTML documents and fragments in Python

x8 - Hidden parameters discovery suite

selectolax - Python binding to Modest and Lexbor engines (fast HTML5 parser with CSS selectors).

binserve - A fast production-ready static web server with TLS (HTTPS), routing, hot reloading, caching, templating, and security in a single-binary you can set up with zero code.

cssutils

delta-rs - A native Rust library for Delta Lake, with bindings into Python