How To Prevent Yii From Strip_Tags On Field Value?

Dear all!

I have a filed in my model that contains slug (i.e. for human readable url). Slug consists of slug_<digits>.html

Whenever actionUpdate is called the slug is messed and replaced with slug-<digits>-html

I think it’s the result of php strip_tags() method being called on field value. How do I prevent yii from calling it? Or beter what rule should be applayed to it for yii to allow it?


Yii doesn’t do this stuff by itself, so check your code.

First place to look for is your model (validation rules and beforeSave)

Sorry for the noise. That was SluggableBehavior trying to update existing url. Shame on me! :)