The output of the rendering is sent via a json call

    @jsonify
    def editProperties(self, **kwargs):
        ...
        jsfile = render(self.editPropertiesPath+'.js',
extra_vars=kwargs)
        return dict(jsfile=jsfile, result='OK')

If I use the code above, quotes in the static part are escaped to
&#34.  If I modify the last line to jsfile=jsfile.unescape(),  I don't
have this issuem but static string containing & become rubbish

On 11 nov, 11:21, Piotr Kęplicz <[email protected]> wrote:
> cropr, czwartek 11 listopada 2010 09:20:
>
> > That only helps for everything that is inside ${} blocks, but not for
> > the static part of the javascript file .  The latter part is still
> > html-escaped,
>
> Show us exactly what you do. Simple "return render('file.js')" as a response
> shouldn't escape static parts of the template.
>
> .pk.

-- 
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