Migawari
Create html from css query selector.
Sample Usage
var migawari = ; //<a></a>; //<div class="c"></div>; //<div id="d"></div>; //<a title="foo"></a>; //<a><b></b></a>; //<a></a><b></b>; //<a></a><b></b>; //<a><b></b><div class="c"></div></a> // descendant and sibilings insert dummy; //<a></a><div></div><b></b>; //<a><div><b></b></div></a>
API
toString()
Output html.
dom
Return Dom object for htmlparser2 If you want customize output. You can use this.
Options
option.dummy (default=div)
Change dummy tag name.
sample:
// => <a><span><b></b><span></span><p></p></span></a> // => '<span class="c"></span>'