On 19-11-2008 at 20:43:49 Szymon Przybył <[EMAIL PROTECTED]> wrote:

And now, when I want to use sings like < or > in js code, I write:

if(count<x tal:replace="structure '<'"/>3)

...and you create invalid XHTML.

(otherwise xml parsing will return an error)

Because literal < and > are forbidden in <script> in XHTML (they are required in HTML).

This is a bit uncomfortable in use - is there some other, better way to use < > signs in templates as text?


< & >


The above works in XHTML browsers.

If you're going to serve this page as text/html, you need more tricks:


< & >


And read the FAQ.

regards, Kornel

PHPTAL mailing list

Reply via email to