Quality improvements
This commit is contained in:
@@ -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)
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user