14th April 04:35
How to display longtext in
I've saved some data in MySQL in a field of type LONGTEXT. How can i display
the data in <textarea> format, ie. with the <LF> or <CR> in the original
I can only display the field in <textarea> format only when i use a form,
but i do not want to allow users to edit the data.
Is there any other way to display the data correctly?
Example: I keyed in the following into the field:
My name is John.
I am 3 feet tall.
I am the tallest in my class.
But when i display it, the data looks like this:
My name is John. I am 3 feet tall. I am the tallest in my class.