Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:SeniorSeniorMath-SciLib2k24/merm…
Browse files Browse the repository at this point in the history
…aid into bug/6113_fix-eslint-no-base-to-string
  • Loading branch information
Shahir-47 committed Dec 6, 2024
2 parents e538ce0 + df636c6 commit 940a79d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/mermaid/src/diagrams/common/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ export const sanitizeText = (text: string, config: MermaidConfig): string => {
return text;
}
if (config.dompurifyConfig) {
text = String(DOMPurify.sanitize(sanitizeMore(text, config), config.dompurifyConfig));
// eslint-disable-next-line @typescript-eslint/no-base-to-string
text = DOMPurify.sanitize(sanitizeMore(text, config), config.dompurifyConfig).toString();
} else {
text = DOMPurify.sanitize(sanitizeMore(text, config), {
FORBID_TAGS: ['style'],
Expand Down

0 comments on commit 940a79d

Please sign in to comment.