truncateHTML
truncateHTML copied to clipboard
PHP library to handle truncate action on HTML strings
Bumps [symfony/http-kernel](https://github.com/symfony/HttpKernel) from 2.4.5 to 2.6.13. Changelog Sourced from symfony/http-kernel's changelog. CHANGELOG 7.0 Add argument $reflector to ArgumentResolverInterface::getArguments() and ArgumentMetadataFactoryInterface::createArgumentMetadata() Remove ArgumentValueResolverInterface, use ValueResolverInterface instead Remove StreamedResponseListener Remove AbstractSurrogate::$phpEscapeMap Remove...
Would be great if you could add UTF8/Multibyte character support to this. Thanks!
Twig 2
Thanks for sharing your code! I've been using it for a while now. Recently I upgraded symfony and sadly your plugin broke. So I made it work for Twig 2....
This pass _all_ arguments from the twig filter on to the truncate method.
Bumps [twig/twig](https://github.com/fabpot/Twig) from 1.15.1 to 1.36.0. Commits See full diff in compare view [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter...
Bumps [symfony/http-foundation](https://github.com/symfony/http-foundation) from 2.4.5 to 2.6.13. Changelog Sourced from symfony/http-foundation's changelog. CHANGELOG 7.0 Calling ParameterBag::filter() throws an UnexpectedValueException on invalid value, unless flag FILTER_NULL_ON_FAILURE is set Calling ParameterBag::getInt() and ParameterBag::getBool()...