$purifier=new CHtmlPurifier;
$purifier->options=array('HTML.Allowed'=>'div');
$content=$purifier->purify($content);
或者
<?php $this->beginWidget('CHtmlPurifier'); ?>
...display user-entered content here...
<?php $this->endWidget(); ?>
$purifier=new CHtmlPurifier;
$purifier->options=array('HTML.Allowed'=>'div');
$content=$purifier->purify($content);
或者
<?php $this->beginWidget('CHtmlPurifier'); ?>
...display user-entered content here...
<?php $this->endWidget(); ?>