calc: escape cipher names at all render sinks (parity with production; interim, CSP-real is the durable fix)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LmGTn96JVn6xPNNTTW77g1
This commit is contained in:
malonehunterandClaude Opus 4.8 committed 2026-09-14 05:49:52 -04:00
1 parent b478d1122c
commit 0396c39b77
5 files changed
+18 -18

No files matched your search

+6 -6
View File
@@ -443,7 +443,7 @@ function displayCipherCatDetailed(curCat) {
} // checkbox state
o +=
'<tr><td><label class="chkLabel ciphCheckboxLabel2">' +
cipherList[i].cipherName +
escHtml(cipherList[i].cipherName) +
'<input type="checkbox" id="cipher_chkbox' +
i +
'" onclick="toggleCipher(' +
@@ -1077,7 +1077,7 @@ function toggleColorControlsMenu(redraw = false) {
if (cipherList[i].enabled) {
o +=
'<td><span class="ciphCheckboxLabel">' +
cipherList[i].cipherName +
escHtml(cipherList[i].cipherName) +
"</span></td>";
o +=
'<td><input type="number" step="2" min="-360" max="360" value="' +
@@ -1965,7 +1965,7 @@ function updateEnabledCipherTable() {
'<td class="phraseGemCiphName" style="' +
cur_col +
'">' +
cipherList[i].cipherName +
escHtml(cipherList[i].cipherName) +
"</td>";
// o += '<td class="phraseGemValueOdd" style="'+cur_col+'">'+cipherList[i].calcGematria(phr)+'</td>'
o +=
@@ -1990,7 +1990,7 @@ function updateEnabledCipherTable() {
'<td class="phraseGemCiphName" style="' +
cur_col +
'">' +
cipherList[i].cipherName +
escHtml(cipherList[i].cipherName) +
"</td>";
ciph_in_row++;
odd_col = true;
@@ -2231,7 +2231,7 @@ function updateHistoryTable(hltBoolArr) {
'px;"><span class="hCV2" style="' +
curCiphCol +
'">' +
cipherList[z].cipherName +
escHtml(cipherList[z].cipherName) +
"</span></td>"; // color of cipher displayed in the table
} else {
ms +=
@@ -2242,7 +2242,7 @@ function updateHistoryTable(hltBoolArr) {
"px; min-width: " +
calcCipherNameWidthPx(cipherList[z].cipherName) +
'px;">' +
cipherList[z].cipherName +
escHtml(cipherList[z].cipherName) +
"</td>"; // color of cipher displayed in the table
}
}