Extract useful bits from huge html documents as fast as possible.
npm install @mcrowe/html-purifierExtract useful bits from huge html documents as fast as possible.
> npm install @mcrowe/html-purifier --save
``js
import HtmlPurifier from '@mcrowe/html-purifier'
const html = '
const result = HtmlPurifier.purify(html, [
'#rank',
'.my-image'
])
assert(
result === '
Install npm modules:
> npm install
Run tests:
> npm test
Release a new version:
> bin/release.sh
This will publish a new version to npm, as well as push a new tag up to github.