Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aumetra/bubble-bath
Small and quick HTML sanitizer
https://github.com/aumetra/bubble-bath
Last synced: 3 months ago
JSON representation
Small and quick HTML sanitizer
- Host: GitHub
- URL: https://github.com/aumetra/bubble-bath
- Owner: aumetra
- License: apache-2.0
- Created: 2023-11-16T19:47:56.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-07T19:16:53.000Z (4 months ago)
- Last Synced: 2024-10-08T03:40:20.782Z (4 months ago)
- Language: Rust
- Homepage:
- Size: 349 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE-APACHE-2.0
Awesome Lists containing this project
README
# bubble-bath
Small and quick HTML sanitizer
## Usage
Add `bubble-bath` to your dependencies:
```notest
cargo add bubble-bath
```Use the library:
```rust
let unsanitized = r#"alert('XSS!')"#;
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.