Thursday, December 22, 2011

Re: Textarea linebreak getting converted to text

Just for additional info:

The following works to remedy the issue.
<?php $this->Form->data['ProductCalculation']['batch'] = str_replace('\n',"\n",$this->Form->data['ProductCalculation']['batch']); ?>

I also checked when this is happening...

The $this->data array contains the real line breaks inside the controller method... but when it reaches the beforeRender method, the line breaks are jacked.

So somewhere in there something is messing with the line breaks.

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
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

No comments: