punktde/eel-htmlcrop

Last activity 19 May 2020 1 3677
composer require punktde/eel-htmlcrop

Neos Eel helper for cropping string html safe

1.1.1

Version
1.1.1
Type
neos-package
Release Date
Apr 23, 2020 07:53
Source
git
Distribution
zip
Requires
  • neos/eel: *
  • judev/php-htmltruncator: ^1.0
MIT 3a82acf131d5e5ad3f9e7687d3f3991c6080c3f0

Readme excerpt

Neos Eel helper for HTML-safe string cropping

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


Read more
The content of the readme is provided by an external source, which we have no control over. Check out the actual readme at its source.
The same vendor provides 32 package(s).