, . , , , (innerText, innerHTML, jQuery , TextRange, pre .. ..), . , IE . , : pre , javascript , pre textarea.
In IE9, this behavior has changed. The only solution in older versions would be to replace the new line characters with tags
(or something really, a semicolon, etc.) on the server, if possible, and then replace them with \ n in javascript after extracting the text content.
source
share