import json should work with in/out/value too
This commit is contained in:
parent
6cd2eaf93a
commit
8096bc6a20
1 changed files with 1 additions and 1 deletions
|
@ -151,7 +151,7 @@ pandora.ui.importAnnotationsDialog = function(options) {
|
||||||
[annotations.length]
|
[annotations.length]
|
||||||
));
|
));
|
||||||
annotations = annotations.map(function(annotation) {
|
annotations = annotations.map(function(annotation) {
|
||||||
var value = Ox.sanitizeHTML(annotation.text);
|
var value = Ox.sanitizeHTML(annotation.text ? annotation.text : annotation.value);
|
||||||
if (format == 'srt') {
|
if (format == 'srt') {
|
||||||
value = value.replace(/<br[ /]*?>\n/g, '\n')
|
value = value.replace(/<br[ /]*?>\n/g, '\n')
|
||||||
.replace(/\n\n/g, '<br>\n')
|
.replace(/\n\n/g, '<br>\n')
|
||||||
|
|
Loading…
Reference in a new issue