Cgridview custom value return endoced url

My cgridview row:


array(

			'name' => 'createip',

			'value' => array($this,'CreateIp'),

		),

And my CreateIp function in controller:


public function LastIp($data,$row) {

            $logger = new Logger();

            $lastip = $logger->find('pid='.$data->id.' && date='.$data->lastvisit);

            if($lastip != NULL) {

                return CHtml::link($lastip->ipcim, array('admin/logger','ipcim'=>$lastip->ipcim));

            } else {

                return false;

            }

        }

This returned always encoded url:


<td>&lt;a href="/user/admin/logger/ipcim/127.0.0.2"&gt;127.0.0.2&lt;/a&gt;</td>

need this?


array(

    'name' => 'createip',

    'value' => array($this,'CreateIp'),

    'type' => 'raw'

),

Yes, it’s work. :)

Thaks.