Cgridview And Html Span Tag

hello,

i want to add a <span> html tag in the column of a CGridView!

thanks.




    array(

        'name'=>'column_name',

        'type'=>'html',

        'value'=>function($data){

            return '<span>' . CHtml::encode($data->column_name) . '</span>';

        },

    ),



Thank you very much it works like a charm.

[size=“3”]Thanks it really work… :) :) :) :) :) :) [/size]

Awesome!! But if you use "return" it won`t render HTML… I replaced it with "echo"

This is not true. The result should be returned from the anonymous function.