(text)
| 925 | |
| 926 | // HTML 转义 |
| 927 | function escapeHtml(text) { |
| 928 | if (!text) return ''; |
| 929 | const div = document.createElement('div'); |
| 930 | div.textContent = text; |
| 931 | return div.innerHTML; |
| 932 | } |
| 933 | |
| 934 | |
| 935 | // ============================================================================ |
no outgoing calls
no test coverage detected