fix: render LOT values and sync errors without executable interpolation (#4)

This commit is contained in:
Mikhail Chusavitin committed 2026-10-26 10:38:41 +03:00
1 parent c0c7804494
commit 1ada8c12e2
10 files changed
+105 -50

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
// Escape text for HTML text nodes and quoted attributes, never JavaScript code.
function escapeHtml(value) {
return String(value ?? '')
.replace(/&/g, '&')
.replace(/</g, '&lt;')
.replace(/>/g, '&gt;')
.replace(/"/g, '&quot;')
.replace(/'/g, '&#39;');
}