multi-line text JavaScript
by Mohan[ Edit ] 2012-09-20 22:40:52
multi-line text
JavaScript 1.6
var text = <>
this
is
my
multi-line
text
</>.toString();
Print(text);
prints:
this
is
my
multi-line
text
note
If you want to support special XML chars, you can use a CDATA section:
<><![CDATA[
>>> hello
]]></>.toString();