Hi,
I don't think you are correct about that.  Did you check the source
code of your browser output to verify that the \n newlines had really
been removed.  You may find that they are still there  :-)

Simply use:   echo nl2br($your_string)  to show the newlines as
breaks.

HTH

On Oct 5, 10:49 am, . <[EMAIL PROTECTED]> wrote:
> i am trying to use sanitize::html. my problem is that it even removes new
> line characters \n, which i want to keep. how would you handle this in cake?
> thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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