Re: [PHPTAL] How to avoid encoding of an ampersand character in attributes?

2009-01-30 Thread romtek
On Fri, Jan 30, 2009 at 1:28 AM, Werner wrote: > By the way, I always prefer that my query string ampersands get encoded. > It's (more) valid (X)HTML to have a url like this: > > http://example.com?key1=value1&key2=value2 > > Thanks, Werner. If so, the

Re: [PHPTAL] How to avoid encoding of an ampersand character in attributes?

2009-01-30 Thread Kornel LesiƄski
On 30-01-2009 at 02:08:22 romtek wrote: In my template I have the following: tal:attributes="action string:?admin_area=events&req=${formAction}" as a part a form tag. When the template gets rendered, I get the ampersand encoded. This isn't a problem as the browsers interpret this fine, but

Re: [PHPTAL] How to avoid encoding of an ampersand character in attributes?

2009-01-29 Thread Werner
Hi Roman Since a significant part of your action string is hard-coded, you might consider something like this instead? In your code: $template->formAction = "?admin_area=events&req=$formAction"; In your template, use the structure keyword to indicate to PHPTAL that the variable output shoul

[PHPTAL] How to avoid encoding of an ampersand character in attributes?

2009-01-29 Thread romtek
Hi, In my template I have the following: tal:attributes="action string:?admin_area=events&req=${formAction}" as a part a form tag. When the template gets rendered, I get the ampersand encoded. This isn't a problem as the browsers interpret this fine, but I'd like to get a real ampersand instead of