Convert HTML to JavaScript code
Include the following on your html file:
<script type="application/javascript" src="./utill.js"></script>
<script type="application/javascript" src="./namer.js"></script>
<script type="application/javascript" src="./html2js.js"></script>
Run it with:
var html2js = new Html2js();
var script = html2js.convert('<p>my html</p>');
Use it Here.