is-html

Check if a string is HTML

You should not use this for any kind of validation, sanitation, or XSS checks.

Install

$ cargo install is-html

Usage

```rust use ishtml::ishtml;

is_html("

I am HTML

"); //=> true

is_html("

I ❤ rust

"); //=> true

is_html("I am XML"); //=> false

is_html(">+++++++>++++++++++>+++>+<<<<-"); //=> false ```

Note: It does not detect deprecated HTML tags.

Reference

is-html