I have a table cell whose value contains a line break as shown below.
<td>Foo
Bar</td>
I am reading the cell content using td.childNodes[0].nodeValue
and passing the value in an Ajax request. But IE8 reads the LF as space such that "Foo%20Bar" gets sent instead of "Foo%0ABar". However, in Chrome LF is preserved.
Is there an alternative way of reading the cell in IE so that LF is retained?