def serialize(context, value): value = serialize_func(value, context["request"].user) value = json.dumps(value) value = value.replace("<", "<").replace(">", ">") return mark_safe(value)
def serialize(context, value): value = serialize_func(value, context['request'].user) return json.dumps_htmlsafe(value)
def serialize(context, value): value = serialize_func(value, context['request'].user) value = json.dumps(value) value = value.replace('<', '<').replace('>', '>') return mark_safe(value)