(text: string)
| 11 | |
| 12 | // HTML 转义函数(必需) |
| 13 | const htmlEscape = (text: string): string => |
| 14 | text.replace(/[&<>"']/g, m => ({ |
| 15 | '&': '&', '<': '<', '>': '>', |
| 16 | '"': '"', "'": ''' |
| 17 | }[m] || m)); |
| 18 | |
| 19 | // 延迟函数 |
| 20 | const sleep = (ms: number): Promise<void> => |
no outgoing calls
no test coverage detected