// Delete  a series of whitespaces
        $content = preg_replace('/ ( +)/is', ' ', $content);

        // Truncate string
        $content = trim(cut_str($content, $str_size, $tail));

        // Replace back < , <, "
        $content = str_replace(array('<', '>', '"'),array('&lt;', '&gt;', '&quot;'), $content);

        return $content;
    }
   
   
        function getSummary2($lines = 10) {
           
            $content = $this->getContent(false,false);
           
            // 본문을 읽어 들이면서, <BR> 태그를 숨기고, 필요없는 테크를 제거함
            $content = str_replace(array('<BR>', '<br>', '</P>', '</p>'),array('$BR$', '$BR$', '$BR$', '$BR$'), $content);
            $content = str_replace(array('<P>', '<p>', '</div>', '</DIV>'),array('', '', '', ''), $content);   
                $content = preg_replace('!<div class=([^>]*?)>!is','', $content);
           
            // 라인을 분리하고 필요한 라인수 만큼 추출함
            $content_array = explode('$BR$',$content);
            if (count($content_array) < $lines) {
                $lines = count($content_array);
            }
            $new_content = $content_array[0];
            for ($i = 1; $i < $lines; $i++) {
                $new_content = sprintf('%s<br>%s', $new_content, $content_array[$i]);
            }
           
            return $new_content;
        }



    function getRegdate($format = 'Y.m.d H:i:s')
    {
        return zdate($this->get('regdate'), $format);
    }