encode quoted text

This commit is contained in:
rlx 2019-01-24 16:39:57 +05:30
parent e89dc03685
commit 42dcd6f95c

View file

@ -21,7 +21,7 @@ oml.ui.annotation = function(data, $iframe) {
fontSize: '14px', fontSize: '14px',
lineHeight: '21px', lineHeight: '21px',
padding: '8px' padding: '8px'
}).html(data.text).on({ }).html(Ox.encodeHTMLEntities(data.text).replace(/\n/g, '<br/>')).on({
click: function(event) { click: function(event) {
$iframe.postMessage('selectAnnotation', { $iframe.postMessage('selectAnnotation', {
id: data.id id: data.id