Registry / utility / urodoz-truncate-html

urodoz-truncate-html

JSON →
library1.0.1phppackagistunverified

Handle truncate action on HTML strings while preserving valid markup.

composer require urodoz/truncate-html
INSTALL
IMPORT
SIG · URODOZ-TRUNCATE-HT
U
urodoz-truncate-html
utilityphpv1.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

TruncateService
✓ use Urodoz\Truncate\TruncateService;

Truncates an HTML string to a specified length while keeping tags intact.

use Urodoz\Truncate\TruncateService; $truncator = new TruncateService(); $truncated = $truncator->truncate('<p>Long HTML content here</p>', 10);
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.1latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
urodoz-truncate-html — pip install urodoz-truncate-html · libregistry