Because I think using multi-line strings in a var is not very convenient. What are some other ways to handle this? I don't want my code to be like this:
var str = "<p>\'Hello World\'</p>"+"<a href=\'www.blah.com\'>click me</a>";
And so on...
I need this because I want the HTML to load after a javascript event. I don't want to use escape characters for quotes as it will make the code a bit unreadable specially when you want to make changes to it.
Update:
I don't want the code to load at the same time as the page loads. Setting it to display: none; then display: block; will slow things down.