Friday, July 31, 2009

new line in posts

Hi, i have problem in my application with new lines in posts. CakePHP
probably replace "bad" characters from db results and i need to
str_replace('\n','<br />',$somePost['Post']['text']) to keep new lines
in posts, Can somebody help me with this problem? I tried to search
google and this group, but with no success... Thank you
--~--~---------~--~----~------------~-------~--~----~
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 cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: