Skip to content

Commit 0d255f7

Browse files
committed
Fix issue with decorator on utils.html.remove_tags(). Commit ready for merge.
- Legacy-Id: 15267
1 parent e657481 commit 0d255f7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/utils/html.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ def unescape(text):
3131
"""
3232
return text.replace('&#39;', "'").replace('&quot;', '"').replace('&gt;', '>').replace('&lt;', '<' ).replace('&amp;', '&')
3333

34+
@keep_lazy(six.text_type)
3435
def remove_tags(html, tags):
3536
"""Returns the given HTML sanitized, and with the given tags removed."""
3637
allowed = set(acceptable_tags) - set([ t.lower() for t in tags ])
3738
return bleach.clean(html, tags=allowed)
38-
remove_tags = keep_lazy(remove_tags, six.text_type)
3939

4040
# ----------------------------------------------------------------------
4141
# Html fragment cleaning

0 commit comments

Comments
 (0)