multi-line text JavaScript

by Mohan 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();






857
like
0
dislike
0
mail
flag

You must LOGIN to add comments