[PHPTAL] tal:attributes="onclick php: 'javascript:document.getElementById(\'\')'" send onclick="javascript:document.getElementById(' ' )" and I want getElementById('')

KLEIN Stéphane klein.stephane at gmail.com
Tue Sep 26 16:22:04 CEST 2006


Hello,

I've this template code :

<a tal:attributes="onclick php:
'javascript:document.getElementById(\'\')'" onclick="">Caption</a>

which send this :

<a onclick="javascript:document.getElementById(&#039;&#039;)">Caption</a>

Now, I don't want &#039;&#039; but '' , how can I fix this issue ?

Thanks for your help,
Stephane



More information about the PHPTAL mailing list