mirror of https://github.com/django/django.git
Removed unnecessary call to force_text in utils.html.clean_html.
Refs #21574
This commit is contained in:
parent
1689744aee
commit
db41778e8c
|
@ -291,7 +291,7 @@ def clean_html(text):
|
||||||
bottom of the text.
|
bottom of the text.
|
||||||
"""
|
"""
|
||||||
from django.utils.text import normalize_newlines
|
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*b\s*>', '<\\1strong>', text)
|
||||||
text = re.sub(r'<(/?)\s*i\s*>', '<\\1em>', text)
|
text = re.sub(r'<(/?)\s*i\s*>', '<\\1em>', text)
|
||||||
text = fix_ampersands(text)
|
text = fix_ampersands(text)
|
||||||
|
|
Loading…
Reference in New Issue