The view I'm using returns a string in an html template. The returned string contains special characters that are not displayed correctly in the template. Simply put, the string returned from the view might look like this:
test = "\"Foo bar\"" return render_to_response('index.html', {'test': test})
And displayed in the html template as follows:
& quot;Foo bar& quot;
How can I fix the encoding so that it displays correctly?
Steve
source share