I have the HTML but I want to create it programatically. I know how to do it with JavaScript's .createElement
.appendChild
methods but it's time consuming. I can't find such a conversion tool online.
Does anyone know if there is a tool, an online tool, to take my HTML snippet and generate the JavaScript required to add that to my document?