I a splitting the input of a textarea
into seperate lines like this.
const lines = $('#myTextarea').val().split('\n');
However I would also split it when the user enters \n
but this is somehow ignored.
So when the user's input in the textarea is:
first line \n second line
third line
fourth line
I expect to have an array with [first line,second line, third line, fourth line]
but instead I get[first line \n second line, third line, fourth line]