Correct Validation Rule For Insert Html

hi,

i want to insert html code to database to show flash ads in side bar of page.

which validation rule is appropriate for that?

thanks in advance

in YII, we have

CHtmlPurifier

http://www.yiiframework.com/doc/api/1.1/CHtmlPurifier

ftext-validator

http://www.yiiframework.com/extension/ftext-validator/

thanks i check it out.