불필요한 부분 제거

This commit is contained in:
conory 2017-05-23 10:30:38 +09:00
parent eb339c8101
commit 35eae12cca
4 changed files with 5 additions and 18 deletions

View file

@ -639,11 +639,8 @@ class documentItem extends Object
// Convert temporarily html entity for truncate
$content = html_entity_decode($content, ENT_QUOTES);
// Replace unicode whitespace characters (no-break space)
$content = utf8_normalize_spaces($content);
// Replace all whitespaces to single space
$content = trim(preg_replace('/\s+/', ' ', $content));
$content = utf8_trim(utf8_normalize_spaces($content));
// Truncate string
$content = cut_str($content, $str_size, $tail);