I have this custom JavaScript markup which stores html code in a variable, e.g.
var markup = 'Hello World!';
The markup code will be longer than that (like an actual page). I know a panel can store html code but if I want to access the HTML code and store it in a JS variable, how do I do it - a panel, a javascript file, any other option?