I want to know is there any configuration for encoding html entities in Yii before saving the model. So that before saving model all the entities are html encoded automatically and I dont need to do them for all the model where I am taking data from users.
It’s somewhat unusual to HTML encode data before storing it in the database. It makes more sense to keep the data unaltered in the data store and HTML encode it just before outputting it.
So, is there any switch or attribute in CActiveForm so, it automatically HTML encode all form data.Or is there any other central position so i can encode them before display.??