<?php echo CHtml::activeTextArea($post,'Content',array('cols'=>100,'rows'=>20)); ?>
If I just echo the post value to the screen, the data is there and it shows up. There also doesn't appear to be any html formatting in the text. At any rate, I know the data is in the array object. However, if I try to put the data into a static html textarea I get giant leading and trailing characters (not sure if they are valid spaces or not), even if I use the trim function.
<textarea rows="20" cols="100"> <?php data = trim($post->Content); echo $data; ?> </textarea>
When I do the above I have what appears to be leading and trailing spaces. I've tried several variations on creating my own trim function, including removing all spaces, but with no luck. I'm beginning the think that the spaces aren't in the data at all but have more to do with something php is doing. Anybody seen this? I'd like to be able to use the Yii activeTextArea but I haven't had any luck get it to work either and I'm not sure why it's broken by the characters in the data. Any help would be appreciated.

Help












