hi all
need to decode a DB field in my view, tried doing this bu that doesn’t seem to work.
<?php $this->widget('bootstrap.widgets.TbDetailView',array(
'data'=>$model,
'attributes'=>array(
'news_id',
'news_text',
array(
'name' => 'news_text',
'value' =>CHtml::decode($data->news_text),
),
'news_title',
'news_date',
'news_pin',
),
)); ?>
how can I decode the field in this view?
the reason I need to do it is because the it has all te HTML tags in it. comes from the CKeditor input