Commit 8faff973 by Marko Jevtic

Quality improvements

parent 63edfc6e
......@@ -11,7 +11,7 @@ import dogstats_wrapper as dog_stats_api
from .capa_base import CapaMixin, CapaFields, ComplexEncoder
from capa import responsetypes
from .progress import Progress
from util.misc import escape_html_characters
from xmodule.util.misc import escape_html_characters
from xmodule.x_module import XModule, module_attr, DEPRECATION_VSCOMPAT_EVENT
from xmodule.raw_module import RawDescriptor
from xmodule.exceptions import NotFoundError, ProcessingError
......
......@@ -10,7 +10,7 @@ from fs.errors import ResourceNotFoundError
from pkg_resources import resource_string
import dogstats_wrapper as dog_stats_api
from util.misc import escape_html_characters
from xmodule.util.misc import escape_html_characters
from xmodule.contentstore.content import StaticContent
from xmodule.editing_module import EditingDescriptor
from xmodule.edxnotes_utils import edxnotes
......
......@@ -54,6 +54,7 @@ def escape_html_characters(content):
re.sub(
r"(\s| |//)+",
" ",
html_to_text(content))
html_to_text(content)
)
)
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment