Possible to turn off Twig debug mode for a specific template?
There is also this alternative found here and here where you can do something like this using the triple filter |render|striptags|trim :

&lt;img src="{{ url_image }}" alt="{{ title|render|striptags|trim }}" /&gt;


It worked perfectly in my case (|escape didn't work)