The .val() of a textarea doesn't take new lines into account
The .val() property of an item in jQuery for a <textarea> doesn't seem to work with new lines. I need this function as the text-area is meant to recognize the enter key and display it as a preview, with the new line in tact. However, what happens is shown in this fiddle: http://jsfiddle.net/GbjTy/1/ . The text is displayed, but not in a new line. How can I achieve the preview to include new lines, and I know it is possible, because it does this in the Stack Overflow Post Question preview. Thanks. P.S I have seen other links on SO relating to this, but they all say get the End User to use some