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