Symfony — how can I display the difference between two strings?

Hi All,

is it possible to display the difference between the two lines?

what bundle or there is a feature filter for Twig?

tobish otobrazit diff string, well in Bitbucket...
April 19th 20 at 12:28
1 answer
April 19th 20 at 12:30
Solution
I think it will be not difficult to write a renderer for tviga: https://github.com/sebastianbergmann/diff
is there any example how to do this? - craig39 commented on April 19th 20 at 12:33
@craig39,
get diff ( https://github.com/sebastianbergmann/diff/blob/mas... )
create a function for tviga and go as you want ( https://twig.symfony.com/doc/3.x/advanced.html#id2 ) - Carleton_Mayer commented on April 19th 20 at 12:36
@craig39, or use its output https://github.com/sebastianbergmann/diff/blob/mas... - Carleton_Mayer commented on April 19th 20 at 12:39

Find more questions by tags TwigSymfony