mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-17 14:29:48 +02:00
Merge pull request #2375 from OlegAxenow/bug/2374_console_in_sanitizeText
Comment console.log in sanitizeText
This commit is contained in:
@@ -65,8 +65,6 @@ const sanitizeMore = (text, config) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const sanitizeText = (text, config) => {
|
export const sanitizeText = (text, config) => {
|
||||||
const 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