summaryrefslogtreecommitdiff
path: root/django/template
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-08-18 10:09:17 -0400
committerTim Graham <timograham@gmail.com>2015-09-23 19:31:09 -0400
commit222d0633010e2f37f9fbd2d0559ecc4a5643c738 (patch)
tree5f8fce14ce26c2ae0e3548c7a6c07cdc0389082b /django/template
parent785cc71d5b3300e2702b0b2fc7316e58ca70b563 (diff)
Refs #23269 -- Removed the removetags template tag and related functions per deprecation timeline.
Diffstat (limited to 'django/template')
-rw-r--r--django/template/defaultfilters.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/django/template/defaultfilters.py b/django/template/defaultfilters.py
index d2c77508fe..8319c66eee 100644
--- a/django/template/defaultfilters.py
+++ b/django/template/defaultfilters.py
@@ -13,7 +13,7 @@ from django.utils.dateformat import format, time_format
from django.utils.encoding import force_text, iri_to_uri
from django.utils.html import (
avoid_wrapping, conditional_escape, escape, escapejs, linebreaks,
- remove_tags, strip_tags, urlize as _urlize,
+ strip_tags, urlize as _urlize,
)
from django.utils.http import urlquote
from django.utils.safestring import SafeData, mark_for_escaping, mark_safe
@@ -502,13 +502,6 @@ def safeseq(value):
@register.filter(is_safe=True)
@stringfilter
-def removetags(value, tags):
- """Removes a space separated list of [X]HTML tags from the output."""
- return remove_tags(value, tags)
-
-
-@register.filter(is_safe=True)
-@stringfilter
def striptags(value):
"""Strips all [X]HTML tags."""
return strip_tags(value)