how to HTML-encode labels

how to HTML-encode the labels that are automatically generated using the code below:




echo CHtml::checkBoxList('Categories',

array(),

CHtml::listData(Category::model()->findAll(), 'IdCategory', 'Category'),

array(

   'template' => '<li>{input} {label}</li>', 

   'separator' => '', 

   'checkAll' => 'Alle rubrieken')

);



Class reference usually helps a lot :)

http://www.yiiframework.com/doc/api/CHtml#listData-detail

http://www.yiiframework.com/doc/api/CHtml#encodeArray-detail

if you know where to look for :). but this helps a lot. another method learned!

thank you!