summaryrefslogtreecommitdiff
path: root/django/utils/html.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/utils/html.py')
-rw-r--r--django/utils/html.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/django/utils/html.py b/django/utils/html.py
index fb9c18219c..f7f9a63350 100644
--- a/django/utils/html.py
+++ b/django/utils/html.py
@@ -172,9 +172,7 @@ def strip_tags(value):
while '<' in value and '>' in value:
new_value = _strip_once(value)
if len(new_value) >= len(value):
- # _strip_once was not able to detect more tags or length increased
- # due to http://bugs.python.org/issue20288
- # (affects Python 2 < 2.7.7 and Python 3 < 3.3.5)
+ # _strip_once was not able to detect more tags
break
value = new_value
return value