diff --git a/django/contrib/admin/templates/admin_doc/model_detail.html b/django/contrib/admin/templates/admin_doc/model_detail.html index 9ac56864fa..44fc43e704 100644 --- a/django/contrib/admin/templates/admin_doc/model_detail.html +++ b/django/contrib/admin/templates/admin_doc/model_detail.html @@ -9,13 +9,13 @@ {% endblock %} -{% block breadcrumbs %}{% endblock %} +{% block breadcrumbs %}{% endblock %} -{% block title %}Model: {{ name }}{% endblock %} +{% block title %}Model: {{ name|escape }}{% endblock %} {% block content %}
-

{{ summary }}

+

{{ summary|escape }}

{% if description %}

{% filter escape|linebreaksbr %}{% trans description %}{% endfilter %}

@@ -35,7 +35,7 @@ {{ field.name }} {{ field.data_type }} - {% if field.verbose %}{{ field.verbose }}{% endif %}{% if field.help_text %} - {{ field.help_text }}{% endif %} + {% if field.verbose %}{{ field.verbose|escape }}{% endif %}{% if field.help_text %} - {{ field.help_text|escape }}{% endif %} {% endfor %} diff --git a/django/contrib/admin/templates/admin_doc/template_detail.html b/django/contrib/admin/templates/admin_doc/template_detail.html index df67f1856b..280ea912d0 100644 --- a/django/contrib/admin/templates/admin_doc/template_detail.html +++ b/django/contrib/admin/templates/admin_doc/template_detail.html @@ -1,19 +1,19 @@ {% extends "admin/base_site.html" %} {% load i18n %} -{% block breadcrumbs %}{% endblock %} +{% block breadcrumbs %}{% endblock %} {% block userlinks %}{% trans 'Change password' %} / {% trans 'Log out' %}{% endblock %} -{% block title %}Template: {{ name }}{% endblock %} +{% block title %}Template: {{ name|escape }}{% endblock %} {% block content %} -

Template: "{{ name }}"

+

Template: "{{ name|escape }}"

{% regroup templates|dictsort:"site_id" by site as templates_by_site %} {% for group in templates_by_site %} -

Search path for template "{{ name }}" on {{ group.grouper }}:

+

Search path for template "{{ name|escape }}" on {{ group.grouper }}:

    {% for template in group.list|dictsort:"order" %} -
  1. {{ template.file }}{% if not template.exists %} (does not exist){% endif %}
  2. +
  3. {{ template.file|escape }}{% if not template.exists %} (does not exist){% endif %}
  4. {% endfor %}
{% endfor %} diff --git a/django/contrib/admin/templates/admin_doc/view_detail.html b/django/contrib/admin/templates/admin_doc/view_detail.html index ba90399358..ed90657361 100644 --- a/django/contrib/admin/templates/admin_doc/view_detail.html +++ b/django/contrib/admin/templates/admin_doc/view_detail.html @@ -8,7 +8,7 @@

{{ name }}

-

{{ summary }}

+

{{ summary|escape }}

{{ body }}