').html(DOMPurify.sanitize(
+ prefix = prefix.replace(/%(s|d)/g, '%%').trim();
+ params[0] = params[0].replace(/%(s|d)/g, '%%').trim();
+ postfix = postfix.replace(/%(s|d)/g, '%%').trim();
+ const translation = 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();
diff --git a/tpl/bootstrap.php b/tpl/bootstrap.php
index 427b61c..74338ea 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 5cde124..9a512e1 100644
--- a/tpl/page.php
+++ b/tpl/page.php
@@ -50,7 +50,7 @@ endif;
?>
-
+