3 releases

new 0.1.3 Apr 19, 2024
0.1.2 Feb 3, 2024
0.1.1 Dec 14, 2023
0.1.0 Dec 14, 2023
0.0.0 Nov 16, 2023

#3 in #sanitization

Download history 1/week @ 2023-12-29 32/week @ 2024-01-05 17/week @ 2024-01-12 7/week @ 2024-01-19 2/week @ 2024-02-02 31/week @ 2024-02-16 38/week @ 2024-02-23 25/week @ 2024-03-01 22/week @ 2024-03-08 51/week @ 2024-03-15 64/week @ 2024-03-22 75/week @ 2024-03-29 58/week @ 2024-04-05

250 downloads per month

MIT/Apache

23KB
406 lines

bubble-bath

Small and quick HTML sanitizer

Usage

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);

License

bubble-bath is either licensed under the Apache-2.0 or MIT license, at your choosing.

Contribution

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.


lib.rs:

For an entry point to the library, check the docs of BubbleBath or clean

Dependencies

~8.5MB
~209K SLoC