ictgtvt/html-truncator

There is no license information available for the latest version (v0.0.2) of this package.

Truncate HTML without breaking HTML tags

v0.0.2 2019-01-04 08:53 UTC

This package is auto-updated.

Last update: 2025-06-04 23:06:44 UTC


README

HTML Truncator

How to use:

$truncator = new HTMLTruncator();
echo $truncator->truncate($html, 400);