I am trying to set the id attribute of an image tag within CDetailView. At some point in the rendering process, a class called "CHtmlPurifier" is removing the id attribute. Can someone tell me how to prevent HtmlPurifier from removing the id attribute?
Following is my code:
<?php $this->widget('zii.widgets.CDetailView', array(
'data'=>$model,
'attributes'=>array(
'name',
array(
'label'=>'Accuracy',
'type'=>'html',
'value'=>$model->accuracy->percentage . '% ' . CHtml::image(Yii::app()->baseUrl.'/images/question_mark.png', 'question_mark.png', array('id'=>'accuracy_explanation')),
)
),
));
Thanks!