Thanks,

However I've known this post:
http://lists.motion-twin.com/pipermail/phptal/2009-September/001855.html

According to this way, "structure" keyword is necessary at every time.
tal:content="structure toHTML:var" ...seems bit complex.
Our designers might not accept so unnatural things.

We have many free text fields including newline.
When "line 1\n<b>line 2</b>" is given, I want these two results:

  pal:content-nl2br="var"
  ==> line 1<br />&lt;b&gt;line 2&lt;/b&gt;

  pal:content-nl2br="structure var"
  ==> line 1<br /><b>line 2</b></p>

This is most consistent answer, I thought.

> Why not just have tal:content="nl2br: var"
>
> Just define phptal_tales_nl2br() and voila :)

-- 
Hisateru Tanaka

_______________________________________________
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal

Reply via email to