5 releases

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

#682 in Text processing

Download history 26/week @ 2024-09-01 37/week @ 2024-09-08 21/week @ 2024-09-15 131/week @ 2024-09-22 57/week @ 2024-09-29 33/week @ 2024-10-06 48/week @ 2024-10-13 63/week @ 2024-10-20 46/week @ 2024-10-27 202/week @ 2024-11-03 115/week @ 2024-11-10 49/week @ 2024-11-17 151/week @ 2024-11-24 107/week @ 2024-12-01 103/week @ 2024-12-08 96/week @ 2024-12-15

474 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
~213K SLoC