I'm using DJango to save some html designs in my db. For example here 'Body' has some html content:
When I serialize the content into json, it seems like the html tags get eliminated:
from django.core import serializers
def list_templates(request):
# retrieve all the templates from the DB
all_templates = Template.objects.all()
return HttpResponse(serializers.serialize('json', all_templates))
Here is what I see:
Any recommendations on best practices for saving html codes and their serialization?

