I need to split a text into its lines. But I also need to keep the line break characters at each line.
var text = "abc\\r\\ndef"; // should be two