Nicolas Perriault wrote: > On Sat, Oct 4, 2008 at 10:52 AM, Francois Zaninotto > <[EMAIL PROTECTED]> wrote: > >> One little question: why use `htmlspecialchars()` rather than the output >> escaping library? > > I guess that's because the forms framework must be useable without symfony.
It is also because we try to apply the KISS principle as much as possible. In this specific case, we only need to escape strings, as they will be used as placeholders in a template string. So, there is no need to use the output escaper framework, as it is better suited for complex, nested arrays of strings, arrays, and objects. > > ++ > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-devs?hl=en -~----------~----~----~----~------~----~------~--~---
