2
Look into class/module.textsanitizer.php
function &censorString(&$text)
You may do something like:
$myts =& MyTextSanitizer::getInstance();
$text = "some bad words here";
$clean_text = $myts->censorString($text);
echo $clean_text;
Did not tested, but since $text is passed by reference this should be the best way;
$myts =& MyTextSanitizer::getInstance();
$text = "some bad words here";
$myts->censorString($text);
echo $text;