Problems with encode

Hi, this is my question… thanks for the answer and sorry for my english.

1.- When list or show data, the framework use to displaylabels:

CHtml::encode($model->getAttributeLabel('titulo'));

    but when i diplay labels, is not more covenient use:

CHtml::activeLabel

    Using that, maybe i have problems with XSS? what i should do?

It won't have XSS issue since the labels are declared by developers, not end users. You may consider encoding labels in attributeLabels() method.

Thanks qiang!