On Sun, Jun 1, 2008 at 12:52 AM, thomas <[EMAIL PROTECTED]> wrote:
>
> hi,
> i want to code a widget. therefore i need to provide a callback for
> the "onclick" event. one of those arguments is a string and thus
> between double-quotes. in the html-document the string is no more
> between doublequotes but surrounded by "&quot", which of course does
> not work. what can i do against that?

Sounds like you're hitting up against the autoescaper. The simple
version is that you need to use the |safe filter when you output the
text in your template to let Django know that the content can be
trusted, and therefore shouldn't be escaped (example use: {{
my_name|safe }} ). More details are available here:

http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges#Auto-escapingintemplates

Yours,
Russ Magee %-)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" 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/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to