This commit is contained in:
Keep Creating Online committed 2025-01-12 16:02:52 -05:00
1 parent dcae8bb82f
commit 6bb7c9047f
26 files changed
+399 -2530

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
// js/utils/htmlUtils.js
export function escapeHTML(unsafe) {
return unsafe
.replace(/&/g, "&")
.replace(/</g, "&lt;")
.replace(/>/g, "&gt;")
.replace(/"/g, "&quot;")
.replace(/'/g, "&#039;");
}