You could also wrap your text in a <pre> or a special <p> with styles
set to preserve whitespace.

http://webdesign.about.com/od/styleproperties/p/blspwhitespace.htm

On Mar 7, 6:59 pm, bob <[EMAIL PROTECTED]> wrote:
> In a textarea, how do you retain the spacings and carriage returns when you
> save to the database or output in the view?
>
> for example, if i enter
> "first line
>
> third line"
>
> I want to output to the user keeping all the carriage returns. But right
> now, it just outputs "first line           third line"
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to