I\'m creating a form using the form builder in Symfony. I am adding an attribute into the twig file for my checkboxes which contains an ampersand and pound sign, Symfony is
You can use |raw filter. http://symfony.com/doc/current/book/templating.html#output-escaping-in-twig
Probably what you need is the raw
tag or filter. Also take a look at the autoescape tag.
To turn autoescaping off globally, set the autoescape
option to false
in config.yml
:
twig:
# ...
autoescape: false