Hello!
I'm using the function nl2br() before saving data from an textarea to database (as simple text). This function does the exact thing I was searching for, but it doesn't work backwards.
For example: I grab the saved text from the database for editing, I put it in a textarea (just like the input before), but then there are br tags, placed in instead of "new line".
How can I replace br tags with "newline", before I put the text into a textarea for editing?
Thanks in advance,
edmund