views:

24

answers:

1

hello,

i have a problem with django's render_to_string and encoding single quotes.

... = render_to_string('dummy.txt', {'request':request, 'text':text,}, context_instance=RequestContext(request)))

why are only these quotes translated to '#39;' and all other special characters not?

+1  A: 

Automatic escaping.

Daniel Roseman
solved! great! thx!!
phi