How to use CHtmlPurifier without output buffering?

Hi,

Is it possible to use the HTML Purifier widget without using the output buffering methods:

$this->beginWidget('CHtmlPurifier');


    echo $this->discussion->description;


$this->endWidget();

?

_da.



$p=new CHtmlPurifier;


$content=$p->purify($description);


Thanks.