# Ammonia

Rust library for whitelist-based HTML sanitization.


Source: https://findsoftware.frbit.cloud/ammonia/
Last reviewed: 2026-11-04
Listed since: 2026-11-04

## Record

### Links

- repository: https://github.com/rust-ammonia/ammonia
- docs: https://docs.rs/ammonia/

### Identity

- status: active
- maintainer: The ammonia Developers
- maintainerType: community
- parent: unknown
- firstRelease: 2015
- hqCountry: unknown

### Kind

- category: library
- hosting: binary
- language: rust
- runtime: binary
- runtimeMin: unknown
- basedOn: unknown

### Content

- contentStore: not applicable
- databases: not applicable
- adminUi: not applicable
- headlessApi: not applicable
- templating: not applicable
- i18n: not applicable

### Rendering and deploy

- runsAs: not applicable
- renderingModes: not applicable
- installMethod: cargo

### License

- licenseModel: open-source
- license: Apache-2.0, MIT

### Releases

- currentMajor: 4
- latestReleaseDate: 2026-10-17

### Adoption

- githubStargazers: 687
- packagistDownloads: not applicable
- npmWeeklyDownloads: not applicable
- contributors: 31
- pluginCount: unknown
- packagistMonthlyDownloads: unknown
- ecosystemsMonthlyDownloads: unknown
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: 685
- dependentPackages: 47

### Sources

- urls: https://api.github.com/repos/rust-ammonia/ammonia (read 2026-11-04)
- urls: https://docs.rs/ammonia/latest/ammonia/ (read 2026-11-04)
- firstRelease: https://crates.io/api/v1/crates/ammonia (read 2026-11-04)
- maintainer: https://github.com/rust-ammonia/ammonia/blob/master/LICENSE-MIT (read 2026-11-04)
- category: https://github.com/rust-ammonia/ammonia/blob/master/README.md (read 2026-11-04)
- language: https://api.github.com/repos/rust-ammonia/ammonia (read 2026-11-04)
- runtime: https://github.com/rust-ammonia/ammonia/blob/v4.2.4/Cargo.toml (read 2026-11-04)
- installMethod: https://github.com/rust-ammonia/ammonia/blob/master/README.md (read 2026-11-04)
- license: https://github.com/rust-ammonia/ammonia/blob/master/README.md (read 2026-11-04)
- license: https://github.com/rust-ammonia/ammonia/blob/master/README.md (read 2026-11-04)
- licenseModel: https://github.com/rust-ammonia/ammonia/blob/master/README.md (read 2026-11-04)
- currentMajor: https://github.com/rust-ammonia/ammonia/releases/tag/v4.2.4 (read 2026-11-04)
- latestReleaseDate: https://github.com/rust-ammonia/ammonia/releases/tag/v4.2.4 (read 2026-11-04)
- githubStargazers: https://api.github.com/repos/rust-ammonia/ammonia (read 2026-11-04)
- contributors: https://api.github.com/repos/rust-ammonia/ammonia/contributors (read 2026-11-04)
- dependentPackages: https://packages.ecosyste.ms/api/v1/registries/crates.io/packages/ammonia (read 2026-11-04)
- dependentRepos: https://packages.ecosyste.ms/api/v1/registries/crates.io/packages/ammonia (read 2026-11-04)

## Notes

Ammonia is a whitelist-based HTML sanitization library written in Rust. It uses html5ever to parse its input, and a project adds it through Cargo, as the [README](https://github.com/rust-ammonia/ammonia/blob/master/README.md) shows. The [crate documentation on docs.rs](https://docs.rs/ammonia/) is the main reference, since the project has no website of its own.

---

Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Attributes are recorded, never scored; absent means unknown.
Credit, in full: FindSoftware, CC BY 4.0
