purify popup warning string

a8f6e5c5f71a0f02ce7a3346c86a84b65e872dd1

Wolfsblvt <wolfsblvt@gmail.com>

1 files changed, +1 -1Showing whitespace changes
public/scripts/tags.js+1 -1
@@ -1525,7 +1525,7 @@ async function onTagRestoreFileSelect(e) {
15251525 if (warnings.length) {
15261526 toastr.warning('Tags restored with warnings. Check console or click on this message for details.', 'Tag Restore', {
15271527 timeOut: toastr.options.timeOut * 2, // Display double the time
15281528 onclick: () => Popup.show.text('Tag Restore Warnings', `<samp class="justifyLeft">${DOMPurify.sanitize(warnings.join('<br />\n'))}<samp>`, { allowVerticalScrolling: true }),
15291529 });
15301530 console.warn(`TAG RESTORE REPORT\n====================\n${warnings.join('\n')}`);
15311531 } else {