mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-16 13:59:54 +02:00
Comment console.log in sanitizeText
This is to avoid console window be flooded with 'security level' messages
This commit is contained in:
@@ -65,8 +65,7 @@ const sanitizeMore = (text, config) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const sanitizeText = (text, config) => {
|
export const sanitizeText = (text, config) => {
|
||||||
const level = config.securityLevel;
|
// console.log('security level', config.securityLevel);
|
||||||
console.log('security level', level);
|
|
||||||
if (!text) return text;
|
if (!text) return text;
|
||||||
const txt = DOMPurify.sanitize(sanitizeMore(text, config));
|
const txt = DOMPurify.sanitize(sanitizeMore(text, config));
|
||||||
return txt;
|
return txt;
|
||||||
|
Reference in New Issue
Block a user