A problem of ignoring newline in textarea

You should not try that because the text area is designed to wrap text automatically - there really are not new line characters in the text area, unless you manually inserted them. In that case, they should remain.

srj wrote:

You should not try that because the text area is designed to wrap text automatically - there really are not new line characters in the text area, unless you manually inserted them. In that case, they should remain.

I have input "\n" at each line of the text, but it doesn't work.

Ryan Bigg wrote:

simple_format(your_text_here) ----- Ryan Bigg Freelancer http://frozenplague.net

In this way, I have to write \n in the textarea which is not a good user interface. How can I do some background job to replace the textarea before it is submitted?

no, you don't have to write the \n.

When people type new lines it automatically puts in the \n, or in some
cases a \r\n.

This means simple_format will work.