mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 17:51:40 +09:00
Merge pull request #1221 from sejin7940/getSummary
줄바꿈 처리되어있는 경우 getSummary 추출 오류 수정
This commit is contained in:
commit
80ae13a6c2
1 changed files with 2 additions and 0 deletions
|
|
@ -524,6 +524,8 @@ class documentItem extends Object
|
|||
function getSummary($str_size = 50, $tail = '...')
|
||||
{
|
||||
$content = $this->getContent(FALSE, FALSE);
|
||||
|
||||
$content = nl2br($content);
|
||||
|
||||
// For a newlink, inert a whitespace
|
||||
$content = preg_replace('!(<br[\s]*/{0,1}>[\s]*)+!is', ' ', $content);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue