mirror of
https://github.com/django/django.git
synced 2025-10-25 14:46:09 +00:00
Removed unnecessary function-level import.
This commit is contained in:
@@ -290,7 +290,6 @@ def clean_html(text):
|
|||||||
* Remove stuff like "<p> </p>", but only if it's at the
|
* Remove stuff like "<p> </p>", but only if it's at the
|
||||||
bottom of the text.
|
bottom of the text.
|
||||||
"""
|
"""
|
||||||
from django.utils.text import normalize_newlines
|
|
||||||
text = normalize_newlines(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)
|
||||||
|
|||||||
Reference in New Issue
Block a user