How to place html tags inside javascript string?
I have this code right here: generation.innerHTML= "<!DOCTYPE html>\n"+ "<html>\n"+ "<head>\n"+ "<style>\n"+ cinput+ "\n<\/style>"+ "\n<\/head>"+ "<body>\n"+ hinput+ "\n<script>\n"+ jinput+ "\n<\/script>\n"+ "<\/body>"+ "<\/html>"; But the doctype, html, head and body tags dissapear when I console log it, but when viewing it as a P element, all of the tags go away and leave the hinput, cinput,… Read More How to place html tags inside javascript string?