Exemple #1
0
def serialize(context, value):
    value = serialize_func(value, context["request"].user)
    value = json.dumps(value)
    value = value.replace("<", "&lt;").replace(">", "&gt;")
    return mark_safe(value)
Exemple #2
0
def serialize(context, value):
    value = serialize_func(value, context['request'].user)
    return json.dumps_htmlsafe(value)
Exemple #3
0
def serialize(context, value):
    value = serialize_func(value, context['request'].user)
    value = json.dumps(value)
    value = value.replace('<', '&lt;').replace('>', '&gt;')
    return mark_safe(value)
def serialize(context, value):
    value = serialize_func(value, context['request'].user)
    value = json.dumps(value)
    value = value.replace('<', '&lt;').replace('>', '&gt;')
    return mark_safe(value)