Encode html to its component plain-text and meta style parts
npm install html-text-weaver``javascript
{ encode, decode } = require('html-text-projection');
const html = '
encode(html);
// {
// text: 'Hey, you! Get out of there!',
// meta: [ [ 'h1', 0, 27 ], [ 'b', 10, 27 ], [ 'i', 10, 27 ] ] }
// }
decode(encode(html))
// '
Encode html into its component plain-text and meta style parts. Meta is an array of arrays of tag names, start, and end offests.
Decode text and meta parts back into html.