0.0.4 • Published 6 years ago

vamtiger-get-body-inner-html v0.0.4

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

VAMTIGER Get Body Inner HTML

VAMTIGER Get Body Inner HTML will return the title for defined HTML document text

Installation

VAMTIGER Get Body Inner HTML can be installed using npm or yarn:

npm i --save vamtiger-get-body-inner-html

or

yarn add vamtiger-get-body-inner-html

Usage

Import or require a referece to VAMTIGER Get Body Inner HTML:

import getBodyInnerHtml from 'vamtiger-get-body-inner-html';

or

const getBodyInnerHtml = require('vamtiger-get-body-inner-html').default;

VAMTIGER Get Body Inner HTML can then be used to test whether a defined input string contains a HTML Title:

const getBodyInnerHtml = require('vamtiger-get-body-inner-html').default;

const html = `
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>
        Some HTML Title
    </title>
</head>
<body>
    <div>
        Some HTML body inner HTML
    </div>
</body>
</html>
`;
const bodyInnerHtml = getBodyInnerHtml({ html });
/*    <div>
 *        Some HTML body inner HTML
 *    </div>
 */