punktde/eel-htmlcrop

Neos Eel helper for cropping string html safe

Installs: 1 523

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 6

Forks: 0

Open Issues: 0

Type:neos-package

1.1.3 2020-05-19 09:33 UTC

This package is auto-updated.

Last update: 2021-09-19 12:26:59 UTC


README

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