Is \\n the universal newline character sequence in Javascript for all platforms? If not, how do I determine the character for the current environment?
\\n
I
Get a line separator for the current browser:
function getLineSeparator() { var textarea = document.createElement("textarea"); textarea.value = "\n"; return textarea.value; }