mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
xe_board게시판의 웹진형에서 요약정보가 영문이나 숫자 또는 특수기호로 주욱 연결되어 있을때 줄 나눔이 안되어 게시판 모양이 깨어지는 문제 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4979 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
ec0058f0ca
commit
8baea1171a
2 changed files with 6 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue