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
1 changed files with 1 additions and 1 deletions

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)