5 releases

new 0.2.1 Nov 7, 2024
0.2.0 Sep 27, 2024
0.1.3 Apr 19, 2024
0.1.2 Feb 3, 2024
0.0.0 Nov 16, 2023

#654 in Text processing

Download history 13/week @ 2024-07-18 84/week @ 2024-07-25 55/week @ 2024-08-01 19/week @ 2024-08-08 10/week @ 2024-08-15 11/week @ 2024-08-22 28/week @ 2024-08-29 29/week @ 2024-09-05 31/week @ 2024-09-12 22/week @ 2024-09-19 155/week @ 2024-09-26 39/week @ 2024-10-03 39/week @ 2024-10-10 42/week @ 2024-10-17 75/week @ 2024-10-24 59/week @ 2024-10-31

232 downloads per month

MIT/Apache

23KB
409 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
~211K SLoC