helpers/KatoBase.php
public static function genShortDesc($content, $tag = 'p' , $wordLimit = 20)
    {
        if (preg_match('%(<' . $tag . '[^>]*>.*?</' . $tag . '>)%i', $content, $regs)) {
            $result = $regs[1];
        } else {
            $result = "";
        }

        return self::limit_words(strip_tags($result), $wordLimit);
    }
public static function genShortDesc($content, $tag = 'p' , $wordLimit = 20)
    {
        if (preg_match('%(<' . $tag . '[^>]*>.*?</' . $tag . '>)%i', $content, $regs)) {
            $result = $regs[1];
        } else {
            $result = "";
        }

        return self::limit_words(strip_tags($result), $wordLimit);
    }
Strip tags and limit description
@param $content
@param string $tag
@param int $wordLimit
@return string