punktde/eel-htmlcrop

Neos Eel helper for cropping string html safe

Installs: 3 562

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: 2024-10-19 19:26:48 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 = '…')