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:
parent
1689744aee
commit
db41778e8c
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user