mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-09 18:39:41 +02:00
Test fix + empty relation
This commit is contained in:
@@ -65,6 +65,7 @@ const sanitizeMore = (text, config) => {
|
||||
};
|
||||
|
||||
export const sanitizeText = (text, config) => {
|
||||
if(!text) return text;
|
||||
const txt = DOMPurify.sanitize(sanitizeMore(text, config));
|
||||
return txt;
|
||||
};
|
||||
|
Reference in New Issue
Block a user