Re: [PHPTAL] How to disable autoquote ?

2008-10-14 Thread Guillaume Lecanu
Le mardi 14 octobre 2008 à 09:55 +0100, Kornel Lesiński a écrit : > On 13-10-2008 at 21:22:26 Iván -DrSlump- Montes <[EMAIL PROTECTED]> > wrote: > > > prefix the content with the 'structure' keyword, it will use the value > > verbatin. > > > > > > This may make XHTML ill-formed if there's any

Re: [PHPTAL] How to disable autoquote ?

2008-10-14 Thread Kornel Lesiński
On 14-10-2008 at 10:53:58 Iván -DrSlump- Montes <[EMAIL PROTECTED]> wrote: I think that CDATA is special enough as to have its own handler, I mean that it should be equivalent to 'structure'. Since TAL should output XML valid documents, having a way to specify a CDATA section seems logical

Re: [PHPTAL] How to disable autoquote ?

2008-10-14 Thread Iván -DrSlump- Montes
I think that CDATA is special enough as to have its own handler, I mean that it should be equivalent to 'structure'. Since TAL should output XML valid documents, having a way to specify a CDATA section seems logical. ie: What I'm not sure of is how would it escape the cdata mark for 'script

Re: [PHPTAL] How to disable autoquote ?

2008-10-14 Thread Kornel Lesiński
On 14-10-2008 at 10:08:15 Ernesto Baschny [cron IT] <[EMAIL PROTECTED]> wrote: It would be cool to have a "tal:cdata=" boolean value, where one could switch on generation of CDATA wrapping automatically, so one could write: And doesn't have to remember all kinds of required CDATA quoting.

Re: [PHPTAL] How to disable autoquote ?

2008-10-14 Thread Ernesto Baschny [cron IT]
Kornel Lesiński wrote: on 14.10.2008 10:55: >> prefix the content with the 'structure' keyword, it will use the value >> verbatin. >> >> > This may make XHTML ill-formed if there's any "<" or "&" in the script. > > /* ${structure myJSCode} > /*]]>*/ > > works in both text/html and app

Re: [PHPTAL] How to disable autoquote ?

2008-10-14 Thread Kornel Lesiński
On 13-10-2008 at 21:22:26 Iván -DrSlump- Montes <[EMAIL PROTECTED]> wrote: prefix the content with the 'structure' keyword, it will use the value verbatin. This may make XHTML ill-formed if there's any "<" or "&" in the script. /**/ works in both te

Re: [PHPTAL] How to disable autoquote ?

2008-10-13 Thread Levi Stanley
Guillaume Lecanu wrote: > Hi, > > I want to write a dynamic JS content into the balise. > A simple : alert("Hello World") > > But the problem is PHPTAL replace all quotes (simple or double quote) by > HTML entities. > > How can I do ? > > Thanks > > > !DSPAM:1,48f

Re: [PHPTAL] How to disable autoquote ?

2008-10-13 Thread Guillaume Lecanu
Le lundi 13 octobre 2008 à 22:22 +0200, Iván -DrSlump- Montes a écrit : > prefix the content with the 'structure' keyword, it will use the value > verbatin. > > This working fine, thanks you for this very quick reply ! > > ciao, > /imv > > > On Mon, Oct 13, 2008 at 10:13 PM, Guillaume Lecanu

Re: [PHPTAL] How to disable autoquote ?

2008-10-13 Thread Iván -DrSlump- Montes
prefix the content with the 'structure' keyword, it will use the value verbatin. ciao, /imv On Mon, Oct 13, 2008 at 10:13 PM, Guillaume Lecanu <[EMAIL PROTECTED]> wrote: > Hi, > > I want to write a dynamic JS content into the balise. > A simple : alert("Hello World") > > But the problem is PH