Multiple line variable syntax issues

Discussion in 'JavaScript' started by jnarowski, Mar 24, 2008.

  1. #1
    I want to create a multi-line javascript variable. This variable will contain the contents of an HTML file. I want to be able to render this html page as a variable without having to add the \ at the end of each line.

    I have found the CDATA solution but dont know if that is compatible across IE6, 7 Mozilla. Any recommendations as to how it can be done better?
     
    jnarowski, Mar 24, 2008 IP