I have a textarea HTML5 input with cols=120
set. When a user types a long string on it, the string may get wrapped into several lines, to fit the specified columns.
However, when I try to retrieve the text value of the element, the long string is not with any kind of line breaks associated.
Is there a way to get a string representation from the textarea which includes linebreaks exactly where the long string got wrapped, so that it goes the exact same way it was displayed into the screen?