punktde/eel-htmlcrop

Letzte Aktivität 19 May 2020 1 3318
composer require punktde/eel-htmlcrop

Neos Eel helper for cropping string html safe

Neos Eel helper for HTML-safe string cropping

Travis Build Status Latest Stable Version Total Downloads

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 = '…')

The content of the readme is provided by Github
The same vendor provides 33 package(s).