Rodrigo:
. THANKS for such a fast response.
>> To avoid this, mark the url as "safe". In the Hello World example:
>> <a href="{{ url|safe }}">{{ url_linktext }}</a>
. I tried that but same problem with validation. I wonder if you meant
"escape"
. With the information you provided I found:
http://docs.djangoproject.com/en/dev/ref/templates/builtins/?from=olddocs
and tried this:
<a href="{{ url|escape }}">{{ url_linktext }}</a>
and now ALL is 100% valid.
Thanks again...
Rob
On Nov 13, 10:37 am, "Rodrigo Moraes" <[EMAIL PROTECTED]>
wrote:
> On Thu, Nov 13, 2008 at 1:16 PM, HG wrote:
> > Errors relate to:
> > - Common error occurs when including a URL which contains an ampersand
> > ("&"):
>
> > - This is invalid! <a href="foo.cgi?
> > chapter=1§ion=2©=3&lang=en">...</a>
> > This example generates an error for "unknown entity section" because
> > the "&" is assumed to begin an entity reference.
>
> I think django template is automatically escaping the url (feature,
> not bug, since most variables need escaping). To avoid this, mark the
> url as "safe". In the Hello World example:
>
> <a href="{{ url|safe }}">{{ url_linktext }}</a>
>
> -- rodrigo
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---