cleanup
This commit is contained in:
parent
02552f3f83
commit
c6c2a425cc
16 changed files with 224 additions and 73 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue