Cgridview And Html Span Tag


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






            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.