').html(DOMPurify.sanitize(
+ prefix + $.PrivateBin.Helper.htmlEntities(params[0]) + '
' + postfix, {
+ ALLOWED_TAGS: ['a', 'br', 'i', 'span'],
+ ALLOWED_ATTR: ['href', 'id']
+ }
+ )).html();
+ let args = Array.prototype.slice.call(params);
+ args.unshift(prefix + '%s
' + postfix);
+ let clean = jsdom();
+ $('body').html('
');
+ args.unshift($('#i18n'));
+ $.PrivateBin.I18n.translate.apply(this, args);
+ const result = $('#i18n').html();
+ $.PrivateBin.I18n.reset();
+ clean();
+ clean = jsdom();
+ $('body').html('
');
+ args[0] = $('#i18n');
+ $.PrivateBin.I18n._.apply(this, args);
+ const alias = $('#i18n').html();
+ $.PrivateBin.I18n.reset();
+ clean();
return translation === result && translation === alias;
}
);
diff --git a/tpl/bootstrap.php b/tpl/bootstrap.php
index 90607b8..04f0594 100644
--- a/tpl/bootstrap.php
+++ b/tpl/bootstrap.php
@@ -72,7 +72,7 @@ endif;
?>
-
+
diff --git a/tpl/page.php b/tpl/page.php
index 1cae5e5..c83374b 100644
--- a/tpl/page.php
+++ b/tpl/page.php
@@ -50,7 +50,7 @@ endif;
?>
-
+