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: script tal:content=cdata myJsCode/script pre tal:content=cdata

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 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: script tal:content=structure myJsCode tal:cdata=true/script And doesn't

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. script tal:content=structure myJsCode/script This may make

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. script tal:content=structure myJsCode/script This may make XHTML ill-formed if there's any or in the script. script/*![CDATA[*/

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. script tal:content=structure myJsCode/script This may make XHTML ill-formed if there's any or in the script. script/*![CDATA[*/ ${structure myJSCode}

[PHPTAL] How to disable autoquote ?

2008-10-13 Thread Guillaume Lecanu
Hi, I want to write a dynamic JS content into the script/scriptbalise. 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 ___ PHPTAL mailing list

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. script tal:content=structure myJsCode/script 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 script/scriptbalise. A

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. script tal:content=structure myJsCode/script This working fine, thanks you for this very quick reply ! ciao, /imv On Mon, Oct 13,

Re: [PHPTAL] How to disable autoquote ?

2008-10-13 Thread Levi Stanley
script language=javascript ![CDATA[ javascript blah ]] /script Guillaume Lecanu wrote: Hi, I want to write a dynamic JS content into the script/scriptbalise. A simple : alert(Hello World) But the problem is PHPTAL replace all quotes (simple or double quote) by HTML entities. How can I