diff --git a/static/js/importAnnotationsDialog.js b/static/js/importAnnotationsDialog.js index 6a3fd754..dced6927 100644 --- a/static/js/importAnnotationsDialog.js +++ b/static/js/importAnnotationsDialog.js @@ -151,7 +151,7 @@ pandora.ui.importAnnotationsDialog = function(options) { [annotations.length] )); annotations = annotations.map(function(annotation) { - var value = Ox.sanitizeHTML(annotation.text); + var value = Ox.sanitizeHTML(annotation.text ? annotation.text : annotation.value); if (format == 'srt') { value = value.replace(/\n/g, '\n') .replace(/\n\n/g, '
\n')