| @@ 151-158 (lines=8) @@ | ||
| 148 | if (!empty($stripTags)) { |
|
| 149 | $ret = strip_tags($ret, $stripTags); |
|
| 150 | } |
|
| 151 | if ($maxLength != 0) { |
|
| 152 | if (!XoopsLocale::isMultiByte()) { |
|
| 153 | if (strlen($ret) >= $maxLength) { |
|
| 154 | //$ret = PublisherUtils::substr($ret , 0, $maxLength); |
|
| 155 | $ret = PublisherUtils::truncateTagSafe($ret, $maxLength, $etc = '...', $break_words = false); |
|
| 156 | } |
|
| 157 | } |
|
| 158 | } |
|
| 159 | return $ret; |
|
| 160 | } |
|
| 161 | ||
| @@ 250-257 (lines=8) @@ | ||
| 247 | if (!empty($stripTags)) { |
|
| 248 | $ret = strip_tags($ret, $stripTags); |
|
| 249 | } |
|
| 250 | if ($maxLength != 0) { |
|
| 251 | if (!XoopsLocale::isMultiByte()) { |
|
| 252 | if (strlen($ret) >= $maxLength) { |
|
| 253 | //$ret = PublisherUtils::substr($ret , 0, $maxLength); |
|
| 254 | $ret = PublisherUtils::truncateTagSafe($ret, $maxLength, $etc = '...', $break_words = false); |
|
| 255 | } |
|
| 256 | } |
|
| 257 | } |
|
| 258 | return $ret; |
|
| 259 | } |
|
| 260 | ||