twig check if text contains code example Example: test if string in string twig {# returns true #} {{ 1 in [1, 2, 3] }} {{ 'cd' in 'abcde' }}