Crates.io | bubble-bath |
lib.rs | bubble-bath |
version | |
source | src |
created_at | 2023-11-16 11:44:18.156252 |
updated_at | 2024-11-07 09:21:49.695895 |
description | Small and quick HTML sanitizer |
homepage | |
repository | https://github.com/aumetra/bubble-bath |
max_upload_size | |
id | 1037529 |
Cargo.toml error: | TOML parse error at line 25, column 1 | 25 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
Small and quick HTML sanitizer
Add bubble-bath
to your dependencies:
cargo add bubble-bath
Use the library:
let unsanitized = r#"<script>alert('XSS!')</script>"#;
let clean = bubble_bath::clean(unsanitized);
bubble-bath
is either licensed under the Apache-2.0 or MIT license, at your choosing.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, shall be licensed as above, without any additional terms or conditions.