Skip to content

afeiship/next-html-parser

Repository files navigation

next-html-parser

A html parser

installation

npm install -S afeiship/next-html-parser --registry=https://registry.npm.taobao.org

apis

api params description
parse (html, options) Parse to json based on himalaya

usage

import NxHtmlParser from 'next-html-parser';

// code goes here:
NxHtmlParser.parse('<div class="nx-html-parser">test <storng>storng text</storng> </div>', {
  callback: function(index, item) {
    item.index = index;
  }
});

About

A html parser.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published