Does anyone know of a php function that will maintain carriage returns and line breaks from a MySQL data field? Basically I am using just a plain old text area field as my input on my form which value is stored in my database with the data type of long text. When the value is written to the db it retains the line breaks and carriage returns without writing the html to the db. However, when I print the data out on my web page from that data field, all of the text is one continuous appended line.
Is there any function in php that will read those carriage returns and format as it is in the database?
Thanks