mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-12 07:11:42 +09:00
Merge pull request #796 from mAKEkr/develop
getSummary 메소드에서 HTML 주석문 닫힘태그 삭제하도록 개선
This commit is contained in:
commit
022c32ee72
2 changed files with 6 additions and 6 deletions
|
|
@ -357,7 +357,7 @@ class commentItem extends Object
|
|||
$content = preg_replace('!(<br[\s]*/{0,1}>[\s]*)+!is', ' ', $content);
|
||||
|
||||
// replace tags such as </p> , </div> , </li> by blanks.
|
||||
$content = str_replace(array('</p>', '</div>', '</li>'), ' ', $content);
|
||||
$content = str_replace(array('</p>', '</div>', '</li>', '-->'), ' ', $content);
|
||||
|
||||
// Remove tags
|
||||
$content = preg_replace('!<([^>]*?)>!is', '', $content);
|
||||
|
|
|
|||
|
|
@ -523,13 +523,13 @@ class documentItem extends Object
|
|||
|
||||
function getSummary($str_size = 50, $tail = '...')
|
||||
{
|
||||
$content = $this->getContent(false,false);
|
||||
$content = $this->getContent(FALSE, FALSE);
|
||||
|
||||
// For a newlink, inert a whitespace
|
||||
$content = preg_replace('!(<br[\s]*/{0,1}>[\s]*)+!is', ' ', $content);
|
||||
|
||||
// Replace tags such as </p> , </div> , </li> and others to a whitespace
|
||||
$content = str_replace(array('</p>', '</div>', '</li>'), ' ', $content);
|
||||
$content = str_replace(array('</p>', '</div>', '</li>', '-->'), ' ', $content);
|
||||
|
||||
// Remove Tags
|
||||
$content = preg_replace('!<([^>]*?)>!is', '', $content);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue