mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +08:00
Comment console.log in sanitizeText
This is to avoid console window be flooded with 'security level' messages
This commit is contained in:
parent
d040883286
commit
b22422f4b8
@ -65,8 +65,7 @@ const sanitizeMore = (text, config) => {
|
||||
};
|
||||
|
||||
export const sanitizeText = (text, config) => {
|
||||
const level = config.securityLevel;
|
||||
console.log('security level', level);
|
||||
// console.log('security level', config.securityLevel);
|
||||
if (!text) return text;
|
||||
const txt = DOMPurify.sanitize(sanitizeMore(text, config));
|
||||
return txt;
|
||||
|
Loading…
x
Reference in New Issue
Block a user