title: Do I need to use CHtml::encode at TbDetailView?
body: <p>I'm using Yii as PHP Framework and when I need to display some information from database, I'm always using CHtml::encode to improve security.</p>
  
  <p>My question is: Do I need to do the same when I display values at Yii widgets, such as TbDetailView or TbGridView?</p>
  
  <p>For example, is the CHtml::encode necessary at the code below?</p>
  
  <pre><code>&lt;?php $this-&gt;widget('bootstrap.widgets.TbDetailView',array(
  'data'=&gt;$model,
  'attributes'=&gt;array(
      'id',
      'nome',
      'descricao',
      'origem',
              array('label'=&gt;'Tipo de Refeição', 'value'=&gt;CHtml::encode($model-&gt;tipoRefeicao ? $model-&gt;tipoRefeicao-&gt;nome : '')),
              array('label'=&gt;'Ativo', 'value'=&gt;CHtml::encode($model-&gt;ativo ? 'Sim' : 'Não')),
  ),
  )); ?&gt;
  </code></pre>