I need to replace the newlines in a textarea with the string ", " for storing it in a database. For example, the following string, taken from the textarea:
hi!
line break!
Would be replaced with:
hi!, line break!
I need to replace the newlines in a textarea with the string ", " for storing it in a database. For example, the following string, taken from the textarea:
hi!
line break!
Would be replaced with:
hi!, line break!