Copy multi-line strings to the clipboard on windows
I've been using the following to copy text to the clipboard, but it doesn't handle the new-line character ('\n'). I've tried different combinations of escape characters but haven't found anything that works.
if (isWindows()) {
cmd = 'cmd.exe /c cmd.exe /c "echo ' + content + '| clip"';
}
system.callSystem(cmd);
