How to remove html tags from view pages?


I have a view page where html tags are being output, any idea how to remove them in yii1 please?

this is what I have in my model:

    public function search()


        // @todo Please modify the following code to remove attributes that should not be searched.

        $criteria = new CDbCriteria;

        $criteria->compare('id', $this->id);

        $criteria->compare('message', $this->message, true);

        $criteria->compare('createdAt', $this->createdAt, true);

        return new CActiveDataProvider($this, array(

            'criteria' => $criteria,



Thank you.

We usually need html tags to construct a page. What problem do you have exactly?

And search() method of the model has nothing to do with the html tags of the page.