html-parser parse html into dom tree use on node var HtmlParser = require('../../'); console.log(HtmlParser.parse('<html><div>1</div><img src="http://g.cn"/></html>'));