views:

123

answers:

1

I am still not sure in that matter. While turned on we're quite safe but some other problems appear (with passing template variables or counting characters). On the other hand we have magic turned off, everything is clear, but we have to manually escape every variable (that come from untrusted source) in templates. By the way, non-magic solution is used in Ruby-on-Rails.

So the question is: when starting a new project in symfony do you disable escaping_strategy and why?

A: 

See the answer to this question for an opinion: http://stackoverflow.com/questions/2513185/symfony-doctrine-unserialize-in-action-vs-template

I would also like to see more information on this subject because it's not very clear.

Tom