https://github.com/tangoman75/truncatehtmlbundle
Tangoman TruncateHtml Twig Service truncates html keeping tags
https://github.com/tangoman75/truncatehtmlbundle
Last synced: 2 months ago
JSON representation
Tangoman TruncateHtml Twig Service truncates html keeping tags
- Host: GitHub
- URL: https://github.com/tangoman75/truncatehtmlbundle
- Owner: TangoMan75
- License: mit
- Created: 2017-08-18T16:15:28.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-04-08T21:31:12.000Z (over 8 years ago)
- Last Synced: 2025-02-26T18:22:38.710Z (over 1 year ago)
- Language: PHP
- Size: 18.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
Tangoman TruncateHtml Twig Service
==================================
**Tangoman TruncateHtml Twig Service** truncates html keeping tags.
How to install
--------------
With composer
```console
$ composer require tangoman/truncate-html-bundle
```
Enable the bundle
-----------------
Don't forget to enable the bundle in the kernel:
```php
{{ post.html|truncatehtml }}
```
Note
====
If you find any bug please report here : [Issues](https://github.com/TangoMan75/TruncateHtml/issues/new)
License
=======
Copyright (c) 2018 Matthias Morin
[![License][license-MIT]][license-url]
Distributed under the MIT license.
If you like **TangoMan TruncateHtml** please star!
And follow me on GitHub: [TangoMan75](https://github.com/TangoMan75)
... And check my other cool projects.
[tangoman.free.fr](http://tangoman.free.fr)
[license-MIT]: https://img.shields.io/badge/Licence-MIT-green.svg
[license-url]: LICENSE