S
susikaufmann2003
Hello,
i have a html text, where it is possible (using ajax) to edit the text
by clicking on it. The text is then shown in a textarea. My problem is,
that the newlines are not displayed in the editing textarea. So i tried
to replace the html-<br> with '\n', but it does not work. I only geht
the text without newlines.
I tried:
actual.innerHTML = actual.innerHTML.replace(/<BR>/gi, '\n');
actual.innerHTML = actual.innerHTML.replace(/<BR>/gi, '\\n');
and some more, but it did not work for me
Thank you for any help,
Susanne
i have a html text, where it is possible (using ajax) to edit the text
by clicking on it. The text is then shown in a textarea. My problem is,
that the newlines are not displayed in the editing textarea. So i tried
to replace the html-<br> with '\n', but it does not work. I only geht
the text without newlines.
I tried:
actual.innerHTML = actual.innerHTML.replace(/<BR>/gi, '\n');
actual.innerHTML = actual.innerHTML.replace(/<BR>/gi, '\\n');
and some more, but it did not work for me
Thank you for any help,
Susanne