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
Requires
- ext-dom: *
- masterminds/html5: ^2.5
This package is auto-updated.
Last update: 2025-06-04 23:06:44 UTC
README
HTML Truncator
- Re-written from https://github.com/judev/php-htmltruncator
How to use:
$truncator = new HTMLTruncator(); echo $truncator->truncate($html, 400);