base commit

This commit is contained in:
@kirill.komarov
2026-05-10 14:28:35 +05:00
parent 1e376caecc
commit 5ddde15fd3
102 changed files with 332 additions and 7657 deletions
+8
View File
@@ -0,0 +1,8 @@
/** Минимальное экранирование для безопасного HTML из пользовательского ввода. */
export function escapeHtml(input) {
return String(input ?? '')
.replace(/&/g, '&')
.replace(/</g, '&lt;')
.replace(/>/g, '&gt;')
.replace(/"/g, '&quot;')
}