php - Symfony - Is it possible to disable output escaping per module (or per template)? -


I am trying to output some HTML to an XML template and messing up Symphony's escaping method. So I tried to make a copy of settings.yml in the module's config folder, but it is being completely ignored. Is escaping_strategy and / or escaping_method settings an easy way to change per module or even per template?

While avoiding the output is on, you still have $ sf_data Has access to raw values ​​through. For example, if you are trying to output to HTML then your action was stored in a variable named html:

  $ this-> gt; Html = '& lt; B & gt; My html & lt; / B & gt; ';  

You can get irreversible value with:

   

I do not believe that there is a way to disable this functionality based on each module.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -