PHP Longtext to display like the user wrote it

Posted by yanike on Stack Overflow See other posts from Stack Overflow or by yanike
Published on 2010-12-30T11:48:59Z Indexed on 2010/12/30 11:54 UTC
Read the original article Hit count: 286

Filed under:
|
|
|
|

I need to know how to display information put in a database longtext field the way it was written.

Like if a user writes in this below:

My life is full of love I fly like
wedding doves I blow passed stop signs
That intersect with hate lines

-

I know what I am
I know who I be
If you can't accept me
Then don't friend me

I want it to display the text from the database just like the user wrote it in the textarea instead of it displaying in one like this:

My life is full of love I fly like wedding doves I blow passed stop signs That intersect with hate lines I know what I am I know who I be If you can't accept me Then don't friend me

How can I could it in PHP to display the information properly using PHP?

© Stack Overflow or respective owner

Related posts about php

Related posts about JavaScript