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?
<script><![CDATA[ < & > ]]></script> The above works in XHTML browsers. If you're going to serve this page as text/html, you need more tricks: <script>/*<![CDATA[*/ < & > /*]]>*/</script> And read the FAQ. -- regards, Kornel _______________________________________________ PHPTAL mailing list PHPTAL@lists.motion-twin.com http://lists.motion-twin.com/mailman/listinfo/phptal