mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-07-24 07:20:45 -04:00
Allow DOMPurify as a global
This commit is contained in:
parent
b6d7d56774
commit
bbec693cab
4 changed files with 4 additions and 2 deletions
|
@ -1763,6 +1763,7 @@ jQuery.PrivateBin = function($, sjcl, Base64, RawDeflate) {
|
|||
});
|
||||
// let showdown convert the HTML and sanitize HTML *afterwards*!
|
||||
$plainText.html(
|
||||
/** global: DOMPurify */
|
||||
DOMPurify.sanitize(converter.makeHtml(text), {SAFE_FOR_JQUERY: true})
|
||||
);
|
||||
// add table classes from bootstrap css
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue