Copy the XSS prevention check from the `sanitize` function in mermaid upstream's `config.ts` file. See: https://github.com/mermaid-js/mermaid/blob/9745f325cb9e1967640f0e85da193a2f820634f1/packages/mermaid/src/config.ts#L178-L183
Copy the XSS prevention check from the `sanitize` function in mermaid upstream's `config.ts` file. See: https://github.com/mermaid-js/mermaid/blob/9745f325cb9e1967640f0e85da193a2f820634f1/packages/mermaid/src/config.ts#L178-L183