(value: string)
| 213 | } |
| 214 | |
| 215 | function escapeXml(value: string): string { |
| 216 | return value.replace(/[&<>"']/g, (c) => XML_ENTITIES[c] ?? c) |
| 217 | } |
| 218 | |
| 219 | function serializeAttributes(attrs?: Record<string, string>): string { |
| 220 | if (!attrs) return '' |
no test coverage detected