diff --git a/modules/board/skins/xe_board/style.webzine.html b/modules/board/skins/xe_board/style.webzine.html index 5e1266afc..5eacee08d 100644 --- a/modules/board/skins/xe_board/style.webzine.html +++ b/modules/board/skins/xe_board/style.webzine.html @@ -130,7 +130,7 @@ - {$document->getSummary(120)} + {$document->getSummary(240)}   diff --git a/modules/document/document.item.php b/modules/document/document.item.php index fe98622a9..28120daca 100644 --- a/modules/document/document.item.php +++ b/modules/document/document.item.php @@ -283,8 +283,11 @@ } function getSummary($str_size = 50) { - // 먼저 태그들을 제거함 - $content = preg_replace('!<([^>]*?)>!is','', $this->getContent(false,false)); + // 영문이나 숫자가 연결되어서 20개 이상으로 연결시에 강제 띄움 시도 + $content = preg_replace('/([a-z0-9\-\+:\/\.\~,\|\!\@\#\$\%\^\&\*\(\)\_\+]){20,}/is',"$0 ",$this->getContent(false,false)); + + // 태그 제거 + $content = preg_replace('!<([^>]*?)>!is','', $content); // < , > , " 를 치환 $content = str_replace(array('<','>','"',' '), array('<','>','"',' '), $content);