[PHPTAL] nl2br()-like for tal:content

2009-09-11 Thread Ionut Matei
Hello, How can I do in phptal something similar to I think something like will do it, but I'd not prefer to escape manually. ___ PHPTAL mailing list PHPTAL@lists.motion-twin.com http://lists.motion-twin.com/mailman/listinfo/phptal

Re: [PHPTAL] nl2br()-like for tal:content

2009-09-11 Thread Kornel LesiƄski
On 11-09-2009 at 14:07:54 Ionut Matei wrote: Hello, How can I do in phptal something similar to I think something like will do it, but I'd not prefer to escape manually. You can write your TALES modifier: function phptal_tales_toHTML($src, $nothrow) { return 'nl2br(htmlspecialcha