Security update to Drupal 8.4.6
[yaffs-website] / node_modules / is-html / readme.md
1 # is-html [![Build Status](https://travis-ci.org/sindresorhus/is-html.svg?branch=master)](https://travis-ci.org/sindresorhus/is-html)
2
3 > Check if a string is HTML
4
5
6 ## Install
7
8 ```sh
9 $ npm install --save is-html
10 ```
11
12
13 ## Usage
14
15 ```js
16 isHtml('<p>I am HTML</p>');
17 //=> true
18
19 isHtml('<!doctype><html><body><h1>I ❤ unicorns</h1></body></html>');
20 //=> true
21
22 isHtml('<cake>I am XML</cake>');
23 //=> false
24
25 isHtml('>+++++++>++++++++++>+++>+<<<<-');
26 //=> false
27 ```
28
29
30 ## License
31
32 MIT © [Sindre Sorhus](http://sindresorhus.com)