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)); }
function removecode($str, $length) { $uccode = new uccode(); $str = $uccode->complie($str); return trim(cutstr(strip_tags($str), $length)); }