punktde/eel-htmlcrop

Last activity on 5 May 2020
  • 1
  • 1310
composer require punktde/eel-htmlcrop

Neos Eel helper for cropping string html safe

1.1.3

Neos Eel helper for cropping string html safe

Version
1.1.3
Type
neos-package
Release Date
19.05.2020 09:33:25
Source
git
Distribution
zip
Requires
Requires (dev)
None
Suggest
None
Provides
None
Conflicts
None
Replaces
None
MIT f0ffd6dd9fcc95856473613ce6d985a807eab36e

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 32 package(s).