punktde / eel-htmlcrop
Neos Eel helper for cropping string html safe
1.1.3
2020-05-19 09:33 UTC
Requires
- judev/php-htmltruncator: ^1.0
- neos/eel: *
This package is auto-updated.
Last update: 2026-03-19 22:43:43 UTC
README
Currently the eelHelper uses judev/php-htmltruncator package to do the cropping.
This implementation might change in future versions.
Installation
Install the package:
composer require punktde/eel-htmlcrop
Usage
This package provides an Eel helper with the following methods:
-
HtmlCropping.cropAtWord(string $html, int $words, string $ellipsis = '…') -
HtmlCropping.cropAtCharacter(string $html, int $chars, string $ellipsis = '…')