1👍
return HttpResponse(output, content_type="text/plain")
The reason it’s returning escaped HTML is because you have content_type='text/plain'
, which says you are just sending plain text.
Try changing it to 'text/html'
.
👤NS0
Source:stackexchange.com