diff --git a/openedx/core/djangolib/markup.py b/openedx/core/djangolib/markup.py
index 0cea1d4af9..42ff88b26a 100644
--- a/openedx/core/djangolib/markup.py
+++ b/openedx/core/djangolib/markup.py
@@ -37,7 +37,7 @@ def HTML(html): # pylint: disable=invalid-name
def strip_all_tags_but_br(string_to_strip):
"""
- Strips all tags from a string except
+ Strips all tags from a string except
and marks as HTML.
Usage:
<%page expression_filter="h"/>
@@ -53,4 +53,4 @@ def strip_all_tags_but_br(string_to_strip):
string_to_strip = decode.utf8(string_to_strip)
string_to_strip = bleach.clean(string_to_strip, tags=['br'], strip=True)
- return string_to_strip
+ return HTML(string_to_strip)
diff --git a/openedx/core/djangolib/tests/test_markup.py b/openedx/core/djangolib/tests/test_markup.py
index f8a347bace..6aafb86209 100644
--- a/openedx/core/djangolib/tests/test_markup.py
+++ b/openedx/core/djangolib/tests/test_markup.py
@@ -90,3 +90,12 @@ class FormatHtmlTest(unittest.TestCase):
self.assertIn('
', rendered_template)
self.assertNotIn('