Hello, i am not sure if this is the supposed behaviour, but suppose i have the following code inside a template.

<!--
<?xml version="1.0" encoding="utf-8"?>
//-->

It will render as is, so having a problem regarding the generated PHP code because the <? ?>

*Parse error*: syntax error, unexpected T_STRING in ...

but since tal expessions are *not* evaluated inside comments i can't process it with a tal expression.

Shouldn't be the right behaviour to escape such characters when they are inside an html comment ?

I was thinking on implementing something like this on phptal for such case:

echo <<<uuid
<!--
<? blah blah ?>
//-->
uuid;

Waiting for comments ...

Slds.

--
Nestor A. Diaz
Ingeniero de Sistemas
Tel. +57 1-485-3020 x 211
Cel. +57 316-227-3593
Tel. SIP: sip:2...@tiendalinux.com
Email/MSN: nes...@tiendalinux.com
http://www.tiendalinux.com/
Bogota, Colombia

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

Reply via email to