[Petal] [BUG] html-encoding not always applied to "&" characters
Bruno Postle
bruno at mkdoc.com
Thu May 13 14:16:18 BST 2004
The Petal docs say that, by default, ampersands (and some other
characters) are encoded to &
I have a case where this doesn't always happen; if I create a URI
object like so:
$document->{uri} = URI->new ("http://example.com/test.cgi?foo=test&bar=test");
..and use it in a template in two equivalent ways:
<p tal:content="string: ${uri}">stuff to be replaced</p>
<p tal:content="uri">stuff to be replaced</p>
..I get two different results (the second one is invalid XML):
<p>http://example.com/test.cgi?foo=test&bar=test</p>
<p>http://example.com/test.cgi?foo=test&bar=test</p>
--
Bruno
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.webarch.co.uk/pipermail/petal/attachments/20040513/41067b67/en.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.pl
Type: application/x-perl
Size: 329 bytes
Desc: not available
Url : http://lists.webarch.co.uk/pipermail/petal/attachments/20040513/41067b67/test.bin
More information about the Petal
mailing list