Wednesday, December 3, 2008

Sanitize::html replacing newlines with literal \n

When Sanitize::html runs on data, it is changing newlines to \n. When I look
at my data in MySQL, it's literally filled with \n characters. This renders
both PRE and nl2br() because they're looking for newlines, not the
characters \n. How can I get Sanitize::html to leave the newlines alone
instead of converting to \n? Thanks!
--
View this message in context: http://n2.nabble.com/Sanitize%3A%3Ahtml-replacing-newlines-with-literal-%5Cn-tp1608411p1608411.html
Sent from the CakePHP mailing list archive at Nabble.com.


--~--~---------~--~----~------------~-------~--~----~
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: