Text input validation

Is there any text input validator predefined in Yii? Or should one define it himself?

I can see only validation about length of text input. There seems nothing about any other

validation related to XSS etc.

Try here:

http://www.yiiframework.com/doc/guide/1.1/en/topics.security

http://www.yiiframework.com/wiki/275/how-to-write-secure-yii-applications/