(text: string)
| 76 | const EscapeRE = new RegExp(`(?:${Object.keys(EscapeMap).join('|')})`, 'g'); |
| 77 | |
| 78 | export function escapeHTML(text: string) { |
| 79 | return text.replace(EscapeRE, str => EscapeMap[str as keyof typeof EscapeMap]); |
| 80 | } |
| 81 | |
| 82 | function splitIntoChunks(s: string, chunkSize: number): string[] { |
| 83 | const chunks: string[] = []; |
no outgoing calls
no test coverage detected