From 42dcd6f95c418d598d13517a9a2de182e9af9b6c Mon Sep 17 00:00:00 2001 From: rlx Date: Thu, 24 Jan 2019 16:39:57 +0530 Subject: [PATCH] encode quoted text --- static/js/annotation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/annotation.js b/static/js/annotation.js index 3587736..d0d26b1 100644 --- a/static/js/annotation.js +++ b/static/js/annotation.js @@ -21,7 +21,7 @@ oml.ui.annotation = function(data, $iframe) { fontSize: '14px', lineHeight: '21px', padding: '8px' - }).html(data.text).on({ + }).html(Ox.encodeHTMLEntities(data.text).replace(/\n/g, '
')).on({ click: function(event) { $iframe.postMessage('selectAnnotation', { id: data.id