I have a textarea that is submitted via post. Before inserting it I am doing this:
mysql_real_escape_string($notes)
And I am outputting the retrieved record with:
stripslashes($notes)
However when I do the line breaks are removed and I get one giant paragraph.
What is the proper method to store a textarea with linebreaks and output the retrieved data?
Not sure if it matters but I am inserting to a Mssql database.