fix: render LOT values and sync errors without executable interpolation (#4)
This commit is contained in:
1 parent
c0c7804494
commit
1ada8c12e2
10 files changed
+105
-50
No files matched your search
@@ -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, '<')
|
||||
.replace(/>/g, '>')
|
||||
.replace(/"/g, '"')
|
||||
.replace(/'/g, ''');
|
||||
}
|
||||
Reference in new issue
Block a user