We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19f3c11 commit 24df838Copy full SHA for 24df838
src/components/mermaid.tsx
@@ -4,14 +4,14 @@ import {useEffect} from 'react';
4
export default function Mermaid() {
5
useEffect(() => {
6
(async function () {
7
- const escapeHTML = (str) => {
+ const escapeHTML = str => {
8
return str.replace(/[&<>"']/g, function (match) {
9
const escapeMap = {
10
'&': '&',
11
'<': '<',
12
'>': '>',
13
'"': '"',
14
- "'": '''
+ "'": ''',
15
};
16
return escapeMap[match];
17
});
0 commit comments