This commit is contained in:
rolux 2015-04-20 10:13:56 +02:00
commit c6c2a425cc
16 changed files with 224 additions and 73 deletions

View file

@ -151,7 +151,9 @@ pandora.ui.importAnnotationsDialog = function(options) {
[annotations.length]
));
annotations = annotations.map(function(annotation) {
var value = Ox.sanitizeHTML(annotation.text ? annotation.text : annotation.value);
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')