NYCPHP Meetup

NYPHP.org

[nycphp-talk] Templating engines

Cliff Hirsch cliff at pinestream.com
Wed Jan 23 17:40:33 EST 2008


On 1/23/08 5:34 PM, "Daniel Convissor" <danielc at analysisandsolutions.com>
> Now there's no guessing, no need to write "|escape" in each variable use
> and no manually escaping the stuff in your PHP.

Just thought of a potential gotcha. Smarty also has a nl2br function. You
would want to escape before nl2br, otherwise your <br> tags would be
escaped. I wonder what the default order is for the default escape -- first
or last.





More information about the talk mailing list