I have a forum, and on every persons post theres a button that allows a moderator to mute someone after reviewing the post/entering hours to mute for in a window using simplemodal. In the code that shows the window, I have long code like
var output = "<div id='msginfo'>...</div>";
and so on. I would like my code to be able to be 'minified' when I'm done with it and a lot of packers/shrinkers crap out when it comes to the html (usually the < and "> stuff.).
How do other web applications manage no HTML in javascript files? are the divs that will be shown just hidden until they're needed or what?