This tool converts HTML into JavaScript with Alkali API sintax.
For example:
<div>
<span>Hello</span>
<div>
<span class='inner-span'>World</span>
</div>
</div>
is converted to:
Div([
Span('', 'Hello'),
Div([
Span('.inner-span', 'World')
])
])
You can use it online here.
$ npm install
$ npm test