The following code in one of my views returns an unescaped html string that cannot be parsed in the interface, as this is an Ajax request.
return render_to_response(template_name, { 'form': form, redirect_field_name: redirect_to, 'site': current_site, 'site_name': current_site.name, }, context_instance=RequestContext(request))
What is the easiest way to fix this? Thanks in advance.
Nullpoet
source share