[Javascript] printing blocks of text

Chris Basken chriz at basken.com
Thu Jul 31 15:37:50 CDT 2003


Hey all,

In Perl, you can do things like:

   print qq*

   BUNCH OF PLAIN TEXT HERE

   *;

Is there a way to do something similar in JS?  If I have line after line of 
HTML I want to write, I've usually just done lots of document.writes, but 
that involves escaping quotes and whatnot.  Is there a better way?





More information about the Javascript mailing list