{"id":96021,"library":"urodoz-truncate-html","title":"Truncate HTML","description":"Handle truncate action on HTML strings while preserving valid markup.","status":"active","version":"1.0.1","language":"php","source_language":null,"source_url":"https://github.com/urodoz/truncateHTML","tags":["html","truncate","string","utility"],"install":[{"cmd":"composer require urodoz/truncate-html","lang":"bash","label":"composer require"}],"dependencies":[],"imports":[{"symbol":"TruncateService","correct":"use Urodoz\\Truncate\\TruncateService;"}],"quickstart":{"code":"use Urodoz\\Truncate\\TruncateService;\n\n$truncator = new TruncateService();\n$truncated = $truncator->truncate('<p>Long HTML content here</p>', 10);","lang":"php","description":"Truncates an HTML string to a specified length while keeping tags intact."},"warnings":[],"env_vars":null,"search_vec":"'action':5 'handl':3 'html':2,7,13 'markup':12 'preserv':10 'string':8,15 'truncat':1,4,14 'util':16 'valid':11","created_at":"2026-06-19T10:50:42.851380+00:00","updated_at":"2026-06-19T10:50:42.851380+00:00","problems":[],"ecosystem":"packagist","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/urodoz/truncateHTML","github":"https://github.com/urodoz/truncateHTML","docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-19","next_check":"2026-12-16","install_tag":null}}