diff options
| author | Vajrasky Kok <sky.kok@speaklikeaking.com> | 2013-12-14 01:29:22 +0800 |
|---|---|---|
| committer | Baptiste Mispelon <bmispelon@gmail.com> | 2013-12-16 15:22:54 +0100 |
| commit | db41778e8ccbbba19954c3b47853b8520ab263a1 (patch) | |
| tree | 571ae3a5cca6be6ffe4da3c44e8b5afdf4326499 | |
| parent | 1689744aee1f13b2f4e270ce63cea143eb6d868e (diff) | |
Removed unnecessary call to force_text in utils.html.clean_html.
Refs #21574
| -rw-r--r-- | django/utils/html.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
