is-html

WebJar for is-html

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

is-html
Last Version

Last Version

1.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

is-html
WebJar for is-html
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/sindresorhus/is-html

Download is-html

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/is-html/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>is-html</artifactId>
    <version>1.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/is-html/
implementation 'org.webjars.npm:is-html:1.1.0'
// https://jarcasting.com/artifacts/org.webjars.npm/is-html/
implementation ("org.webjars.npm:is-html:1.1.0")
'org.webjars.npm:is-html:jar:1.1.0'
<dependency org="org.webjars.npm" name="is-html" rev="1.1.0">
  <artifact name="is-html" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='is-html', version='1.1.0')
)
libraryDependencies += "org.webjars.npm" % "is-html" % "1.1.0"
[org.webjars.npm/is-html "1.1.0"]

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.npm : html-tags jar [1.0.0,2)

Project Modules

There are no modules declared in this project.

is-html Build Status

Check if a string is HTML

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

Install

$ npm install is-html

Usage

const isHtml = require('is-html');

isHtml('<p>I am HTML</p>');
//=> true

isHtml('<!doctype><html><body><h1>I ❤ unicorns</h1></body></html>');
//=> true

isHtml('<cake>I am XML</cake>');
//=> false

isHtml('>+++++++>++++++++++>+++>+<<<<-');
//=> false

Note: It does not detect deprecated HTML tags.

Versions

Version
1.1.0