mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-10-09 17:19:45 +02:00
Update src/diagrams/common/common.js
Co-authored-by: Matthieu MOREL <mmorel-35@users.noreply.github.com>
This commit is contained in:
@@ -65,7 +65,6 @@ const sanitizeMore = (text, config) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const sanitizeText = (text, config) => {
|
export const sanitizeText = (text, config) => {
|
||||||
// console.log('security level', config.securityLevel);
|
|
||||||
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