Am 02.11.2010 02:16 schrieb Marius Gedminas:
Incidentally, that strange's quoting could be a bug -- I'm surprised
to see ' quoted while " isn't.

The outer " is part of the JSON syntax, while the inner ' isn't. If you put a " inside the string, it will be quoted, too.

One solution is to use single quotes in your HTML:

 <a href="#" onclick='alert(${s|json.dumps})'>EXPERIMENT</a>

-- Christoph

--
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en.

Reply via email to