Merge pull request #26450 from edx/private_to_public_02d0b47

Mergeback PR from private to public.
This commit is contained in:
edx-pipeline-bot
2021-02-09 04:51:54 -05:00
committed by GitHub

View File

@@ -165,7 +165,7 @@
.addField({
load: function(field, annotation) {
if (annotation.text) {
$(field).html(HtmlUtils.HTML(Utils.nl2br(annotation.text)).toString());
$(field).html(HtmlUtils.HTML(Utils.nl2br(Annotator.Util.escape(annotation.text))).toString());
} else {
// eslint-disable-next-line max-len
$(field).html(HtmlUtils.joinHtml(HtmlUtils.HTML('<i>'), _t('No Comment'), HtmlUtils.HTML('</i>')).toString());