I need to put unescaped URL generated from path into input element.
routing.yml
profile_delete:
pattern: /student_usun/{id}
defaults: { _controller: YyyXXXBundle:Profile:delete }
list.html.twig
<input id="deleteUrl" value="{{ path('profile_delete', {id: '$'}) }}"/>
The result is:
<input id="deleteUrl" value="/student_usun/%24"/>
I tried |raw filter and also put twig code between {% autoescape false %} tag and result is still the same.
Twig doesn’t come with a url_decode filter to match its url_encode one, so you’ll need to write it.
in src/Your/Bundle/Twig/Extension/YourExtension.php
And then add it to your services configuration in app/config/config.yml
And then use it!