import {Tokenizer} from 'js-html-parser'
const tokenizer = new Tokenizer();
const demoHtml = '<div><p>demo text</p></div>';
console.log([...tokenizer.tokenize(demoHtml)]);
console.log([...Tokenizer.tokenize(html)]);
- install
yarn install
- test
yarn test