How remove whitespaces within tag in twig? Project writin on Symfony2. In twig's documentation advised to use {{- value -}}. I not world want use {%- -%}, because i have to add this block at each tag. if use spaceless, then it remove whitespace between HTML tags, but not delete spaces into a tag.
<p>"
text"</p>
You can use the
spaceless
tag :More informations here on the official documentation : http://twig.sensiolabs.org/doc/tags/spaceless.html