diff --git a/django/contrib/admindocs/templates/admin_doc/template_filter_index.html b/django/contrib/admindocs/templates/admin_doc/template_filter_index.html
index 7470762775..46ccf0fd0a 100644
--- a/django/contrib/admindocs/templates/admin_doc/template_filter_index.html
+++ b/django/contrib/admindocs/templates/admin_doc/template_filter_index.html
@@ -16,8 +16,8 @@
{% if library.grouper %}
To use these filters, put {% templatetag openblock %} load {{ library.grouper }} {% templatetag closeblock %}
in your template before using the filter.
{% endif %}
{% for filter in library.list|dictsort:"name" %}
{{ filter.name }}
- {{ filter.title }}
- {{ filter.body }}
+ {{ filter.title }}
+ {{ filter.body }}
{% if not forloop.last %}
{% endif %}
{% endfor %}
diff --git a/django/contrib/admindocs/templates/admin_doc/template_tag_index.html b/django/contrib/admindocs/templates/admin_doc/template_tag_index.html
index 774130bd70..676c025acb 100644
--- a/django/contrib/admindocs/templates/admin_doc/template_tag_index.html
+++ b/django/contrib/admindocs/templates/admin_doc/template_tag_index.html
@@ -16,8 +16,8 @@
{% if library.grouper %}To use these tags, put {% templatetag openblock %} load {{ library.grouper }} {% templatetag closeblock %}
in your template before using the tag.
{% endif %}
{% for tag in library.list|dictsort:"name" %}
{{ tag.name }}
- {{ tag.title }}
- {{ tag.body }}
+ {{ tag.title|striptags }}
+ {{ tag.body }}
{% if not forloop.last %}
{% endif %}
{% endfor %}
diff --git a/django/contrib/admindocs/templates/admin_doc/view_detail.html b/django/contrib/admindocs/templates/admin_doc/view_detail.html
index d7415ab74f..c6d080c9ef 100644
--- a/django/contrib/admindocs/templates/admin_doc/view_detail.html
+++ b/django/contrib/admindocs/templates/admin_doc/view_detail.html
@@ -7,9 +7,9 @@
{{ name }}
-{{ summary }}
+{{ summary|striptags }}
-{{ body }}
+{{ body }}
{% if meta.Context %}
Context:
diff --git a/django/template/defaulttags.py b/django/template/defaulttags.py
index 5beab49d0a..73ecea3bd7 100644
--- a/django/template/defaulttags.py
+++ b/django/template/defaulttags.py
@@ -853,7 +853,7 @@ def do_if(parser, token):
{% endif %}
Comparison operators are also available, and the use of filters is also
- allowed, for example:
+ allowed, for example::
{% if articles|length >= 5 %}...{% endif %}