vamtiger-get-body-inner-html

Get the inner HTML for defined HTML document text.

Usage no npm install needed!

<script type="module">
  import vamtigerGetBodyInnerHtml from 'https://cdn.skypack.dev/vamtiger-get-body-inner-html';
</script>

README

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>
 */