(str: string)
| 81 | }; |
| 82 | |
| 83 | const escapeHTML = (str: string): string => { |
| 84 | const entityMap: { [key: string]: string } = { |
| 85 | "&": "&", |
| 86 | "<": "<", |
| 87 | ">": ">", |
| 88 | '"': """, |
| 89 | "'": "'", |
| 90 | "/": "/", |
| 91 | }; |
| 92 | |
| 93 | return String(str).replace(/[&<>"'/]/g, function (s) { |
| 94 | return entityMap[s]; |
| 95 | }); |
| 96 | }; |
| 97 | |
| 98 | const formatLabels = (labels: { [key: string]: string }): string => ` |
| 99 | <div class="labels"> |
no test coverage detected
searching dependent graphs…