multi-line text


/ Published in: JavaScript
Save to your folder(s)

prints:

this
is
my
multi-line
text

note
If you want to support special XML chars, you can use a CDATA section:

>> hello

]]>.toString();


Copy this code and paste it in your HTML
  1. var text = <>
  2. this
  3. is
  4. my
  5. multi-line
  6. text
  7. </>.toString();
  8. Print(text);

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.