@non_atomic_requests
def render_xml(request, template, context={}, **kwargs):
    """Safely renders xml, stripping out nasty control characters."""
    rendered = render_xml_to_string(request, template, context)

    if 'content_type' not in kwargs:
        kwargs['content_type'] = 'text/xml'

    return HttpResponse(rendered, **kwargs)
dataset/ETHPy150Open mozilla/addons-server/src/olympia/legacy_api/views.py/render_xml/original