How to prevent symfony2 from html escaping

I am working on a site with symfony2, and in the back office I want to add html code to enable the player. I use the raw function with a twig to get html, but the problem is that when I enter the html code, Symfony escapes quotes. How can I avoid this and make symfony write raw html?

thanks

+4
source share
1 answer

I have found a solution. This actually has nothing to do with symfony, it was just because of magic_quotes. I disabled them in htaccess and everything is fine.

+1
source

Source: https://habr.com/ru/post/1411506/


All Articles