punktde / eel-htmlcrop
Neos Eel helper for cropping string html safe
Installs: 3 583
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 6
Forks: 0
Open Issues: 0
Type:neos-package
Requires
- judev/php-htmltruncator: ^1.0
- neos/eel: *
This package is auto-updated.
Last update: 2024-12-19 19:47:50 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 = '…')