encode quoted text

This commit is contained in:
rlx 2019-01-24 16:39:57 +05:30
parent e89dc03685
commit 42dcd6f95c
1 changed files with 1 additions and 1 deletions

View File

@ -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, '<br/>')).on({
click: function(event) {
$iframe.postMessage('selectAnnotation', {
id: data.id