(value, fallback = "")
| 69 | } |
| 70 | |
| 71 | function normalizeText(value, fallback = "") { |
| 72 | return typeof value === "string" ? value.trim() : fallback; |
| 73 | } |
| 74 | |
| 75 | function escapeHtml(value) { |
| 76 | return normalizeText(value).replace(/[&<>"']/g, (char) => { |
no outgoing calls
no test coverage detected