diff --git a/django/views/static.py b/django/views/static.py index 01eaec8990..536720f5e8 100644 --- a/django/views/static.py +++ b/django/views/static.py @@ -56,13 +56,13 @@ DEFAULT_DIRECTORY_INDEX_TEMPLATE = """ - Index of {{ directory }} + Index of {{ directory|escape }} -

Index of {{ directory }}

+

Index of {{ directory|escape }}