mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-22 05:15:29 +09:00
Update document.item.php
This commit is contained in:
parent
b83bf58e41
commit
44acf38e84
1 changed files with 2 additions and 0 deletions
|
|
@ -524,6 +524,8 @@ class documentItem extends Object
|
||||||
function getSummary($str_size = 50, $tail = '...')
|
function getSummary($str_size = 50, $tail = '...')
|
||||||
{
|
{
|
||||||
$content = $this->getContent(FALSE, FALSE);
|
$content = $this->getContent(FALSE, FALSE);
|
||||||
|
|
||||||
|
$content = nl2br($content);
|
||||||
|
|
||||||
// For a newlink, inert a whitespace
|
// For a newlink, inert a whitespace
|
||||||
$content = preg_replace('!(<br[\s]*/{0,1}>[\s]*)+!is', ' ', $content);
|
$content = preg_replace('!(<br[\s]*/{0,1}>[\s]*)+!is', ' ', $content);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue