An open API service indexing awesome lists of open source software.

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

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