mvccore / ext-view-helper-truncate
MvcCore - Extension - View - Helper - Truncate - truncate plain text or text with html tags to max. chars.
v5.2.0
2024-05-23 07:25 UTC
Requires
- php: >=5.4.0
- mvccore/ext-view-helper: ^5.2
- mvccore/mvccore: ^5.2
This package is auto-updated.
Last update: 2024-10-23 08:27:45 UTC
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>