On line HTML to Javascript DOM converter
html2js is online tool that convert a html fragment in javascript code for create it.
Is useful for javascript's coder that must embed html code in their applications.
Try it inserting a well-formed html fragment in the left box, click on the button and see generated code in
right box.
Output function is called createHTML by default and has a parameter named root
that represents the element where will be appended generated DOM tree.
Obviously you can rename function and parameter as you need.
This app works with IE 5.5 + and Mozilla/Firefox.
html2js is a javascript application based on XSLT trasformation of html well-formed code (XHTML).
Visit my website (Italian) for other tips and tools.