Hi,
I have a textarea input which I save into a mysql db, and later on retrieve it and display it.
I have been using my own ereg_replace function to remove rich text carriage-returns, and replace them with "<BR>". I also did the same for tabs.
But if I switch over to the pre-written "nl2br" function, will it convert the tabs?
Do I even need to take care of tabs because other people don't seem to. Whilst the user cannot put a tab into a textarea by keyboard alone, a lot of my users paste text in from a document, and any tabs just get ignored when I come to display them.
Any ideas?