4 {{ " I like Twig. "|trim }}
6 {{ " foo/"|trim("/") }}
7 {{ "xxxI like Twig.xxx"|trim(character_mask="x", side="left") }}
8 {{ "xxxI like Twig.xxx"|trim(side="right", character_mask="x") }}
9 {{ "xxxI like Twig.xxx"|trim("x", "right") }}
10 {{ "/ foo/"|trim("/", "left") }}
11 {{ "/ foo/"|trim(character_mask="/", side="left") }}
12 {{ " do nothing. "|trim("", "right") }}
14 return array('text' => " If you have some <strong>HTML</strong> it will be escaped. ")
17 If you have some <strong>HTML</strong> it will be escaped.