usually, people are confuse about how to show the "<b>" instead of its format effect. thats way ( i think) yii has already overcome this kind of problem.
if you put <b> hello </b> on your DB, with out yii it will shows as hello and that was bad thing, but with yii (and other framework i guess) it change the <b> hello </b> to >b< hello >/b< so in the view it will still shows as <b> hello </b> instead of hello.
you know my friend, in MVC you dont put any formatting in the model, so… i cant find the right answer to your problem, it think the answer would be something around disabling html special character wrote some where in the yii cores.
but this is my recommendation, put your tag on your view, if you had many varies format, make a widget to do so…
But if I’m not mistaken, these editors already contains internal purification functions, so produced output is XSS and other security-issues safe. That is, why storing their output in DB isn’t a violation of security standards. Am I right?