add comment

This commit is contained in:
2026-01-15 23:26:34 +09:00
parent 9980e596ca
commit c7d4eef918
15 changed files with 546 additions and 106 deletions

7
src/lib/utils.ts Normal file
View File

@@ -0,0 +1,7 @@
export function escapeHtml(str: string): string {
return str
.replace(/&/g, '&')
.replace(/</g, '&lt;')
.replace(/>/g, '&gt;')
.replace(/"/g, '&quot;')
}