mvccore/ext-view-helper-truncate
Composer 安装命令:
composer require mvccore/ext-view-helper-truncate
包简介
MvcCore - Extension - View - Helper - Truncate - truncate plain text or text with html tags to max. chars.
关键字:
README 文档
README
Truncate plain text or text with html tags by given max. characters number and add three dots at the end.
Installation
composer require mvccore/ext-view-helper-truncate
Example
<b><?php echo $this->Truncate('Lorem ipsum dolor sit amet, consectetur adipiscing elit.', 27); ?></b>
<b>Lorem ipsum dolor sit amet...</b>
统计信息
- 总下载量: 359
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 3
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2018-05-04