0
0
mirror of https://github.com/django/django.git synced 2024-12-01 15:42:04 +01:00

Removed unnecessary call to force_text in utils.html.clean_html.

Refs #21574
This commit is contained in:
Vajrasky Kok 2013-12-14 01:29:22 +08:00 committed by Baptiste Mispelon
parent 1689744aee
commit db41778e8c

View File

@ -291,7 +291,7 @@ def clean_html(text):
bottom of the text.
"""
from django.utils.text import normalize_newlines
text = normalize_newlines(force_text(text))
text = normalize_newlines(text)
text = re.sub(r'<(/?)\s*b\s*>', '<\\1strong>', text)
text = re.sub(r'<(/?)\s*i\s*>', '<\\1em>', text)
text = fix_ampersands(text)