{"id":24650739,"url":"https://github.com/tangoman75/truncatehtmlbundle","last_synced_at":"2026-05-17T11:32:16.342Z","repository":{"id":57065027,"uuid":"100729872","full_name":"TangoMan75/TruncateHtmlBundle","owner":"TangoMan75","description":"Tangoman TruncateHtml Twig Service truncates html keeping tags","archived":false,"fork":false,"pushed_at":"2018-04-08T21:31:12.000Z","size":19,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-26T18:22:38.710Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TangoMan75.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-18T16:15:28.000Z","updated_at":"2018-04-08T21:18:10.000Z","dependencies_parsed_at":"2022-08-24T14:01:04.149Z","dependency_job_id":null,"html_url":"https://github.com/TangoMan75/TruncateHtmlBundle","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TangoMan75%2FTruncateHtmlBundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TangoMan75%2FTruncateHtmlBundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TangoMan75%2FTruncateHtmlBundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TangoMan75%2FTruncateHtmlBundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TangoMan75","download_url":"https://codeload.github.com/TangoMan75/TruncateHtmlBundle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244686441,"owners_count":20493445,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-25T18:16:34.357Z","updated_at":"2026-05-17T11:32:16.308Z","avatar_url":"https://github.com/TangoMan75.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Tangoman TruncateHtml Twig Service\n==================================\n\n**Tangoman TruncateHtml Twig Service** truncates html keeping tags.\n\nHow to install\n--------------\n\nWith composer\n\n```console\n$ composer require tangoman/truncate-html-bundle\n```\n\nEnable the bundle\n-----------------\n\nDon't forget to enable the bundle in the kernel:\n\n```php\n\u003c?php\n// app/AppKernel.php\n\npublic function registerBundles()\n{\n    $bundles = array(\n        // ...\n        new TangoMan\\TruncateHtml\\TangoManTruncateHtml(),\n    );\n}\n```\n\nYou don't have to add **TangoMan CallbackBundle** to the `service.yml` of your project.\n**twig.extension.truncate_html** service should load automatically.\n\nHow to use\n----------\n\nInside your views:\n\n```twig\n    \u003cp\u003e\n        {{ post.html|truncatehtml }}\n    \u003c/p\u003e\n```\n\nNote\n====\n\nIf you find any bug please report here : [Issues](https://github.com/TangoMan75/TruncateHtml/issues/new)\n\nLicense\n=======\n\nCopyright (c) 2018 Matthias Morin\n\n[![License][license-MIT]][license-url]\nDistributed under the MIT license.\n\nIf you like **TangoMan TruncateHtml** please star!\nAnd follow me on GitHub: [TangoMan75](https://github.com/TangoMan75)\n... And check my other cool projects.\n\n[tangoman.free.fr](http://tangoman.free.fr)\n\n[license-MIT]: https://img.shields.io/badge/Licence-MIT-green.svg\n[license-url]: LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftangoman75%2Ftruncatehtmlbundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftangoman75%2Ftruncatehtmlbundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftangoman75%2Ftruncatehtmlbundle/lists"}