示例#1
0
文件: pm.php 项目: v998/discuzx-en
 function removecode($str, $length)
 {
     static $uccode = null;
     if ($uccode === null) {
         require_once UC_ROOT . 'lib/uccode.class.php';
         $uccode = new uccode();
     }
     $str = $uccode->complie($str);
     return trim($this->base->cutstr(strip_tags($str), $length));
 }
示例#2
0
function removecode($str, $length)
{
    $uccode = new uccode();
    $str = $uccode->complie($str);
    return trim(cutstr(strip_tags($str), $length));
}