From db41778e8ccbbba19954c3b47853b8520ab263a1 Mon Sep 17 00:00:00 2001 From: Vajrasky Kok Date: Sat, 14 Dec 2013 01:29:22 +0800 Subject: [PATCH] Removed unnecessary call to force_text in utils.html.clean_html. Refs #21574 --- django/utils/html.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/utils/html.py b/django/utils/html.py index fe1776a1e6..0e1c2c4b7b 100644 --- a/django/utils/html.py +++ b/django/utils/html.py @@ -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)