줄이 안 바뀌는 것과 상관 없는 특수 기호 제외, 띄운 단어 헷갈리지 않게 이음표(-)로 표시

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5280 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
misol 2009-01-08 05:13:43 +00:00
parent ee9fc374a5
commit 0e52342418

View file

@ -284,7 +284,7 @@
function getSummary($str_size = 50) {
// 영문이나 숫자가 연결되어서 20개 이상으로 연결시에 강제 띄움 시도 - {20,}으로 길이를 정하면, 20개 이상 문자열 맨 마지막에 스페이스를 추가할 뿐 원하는 의도는 달성되지 못함
$content = preg_replace('/([a-z0-9\-\+:\/\.\~,\|\!\@\#\$\%\^\&\*\(\)\_\+]){20}/is',"$0 ",$this->getContent(false,false));
$content = preg_replace('/([a-z0-9\+:\/\.\~,\|\!\@\#\$\%\^\&\*\(\)\_]){20}/is',"$0-",$this->getContent(false,false));
// 태그 제거
$content = preg_replace('!<([^>]*?)>!is','', $content);