import json should work with in/out/value too

This commit is contained in:
j 2015-01-15 12:13:41 +01:00
parent 6cd2eaf93a
commit 8096bc6a20

View file

@ -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(/<br[ /]*?>\n/g, '\n')
.replace(/\n\n/g, '<br>\n')