Check if a string is HTML
You should not use this for any kind of validation, sanitation, or XSS checks.
$ cargo install is-html
This crate is on crates.io and can be used by adding is-html to your dependencies in your project’s Cargo.toml.
[dependencies]
is-html = "0.1.2"
```rust use ishtml::ishtml;
is_html("
I am HTML
"); //=> trueis_html("
is_html("
is_html(">+++++++>++++++++++>+++>+<<<<-"); //=> false ```
Note: It does not detect deprecated HTML tags.