calc: escape the Date Calculator labels (escHtml); CHANGELOG v2.6.1
Completes the v2.6.0 escaping pass: the From/to description labels go through escHtml at the date-menu render, the Print Date Durations label swap, and the restore after the image export. Cache-bust bumps for the three scripts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
7d76b1f550
commit
d025c7e810
5 files changed
+16
-9
No files matched your search
+2
-2
@@ -191,9 +191,9 @@ function toggleDateCalcMenu() {
|
||||
o += '<div class="dateCalcBg">'
|
||||
|
||||
o += '<table class="dateCalcTable2"><tbody>'
|
||||
o += '<tr style="line-height: 0.9em;"><td><div id="dateDesc1Area"><input class="dateDescription" id="dateDesc1" value="'+dateDesc1Saved+'"></div></td></tr>' // Date 1 label
|
||||
o += '<tr style="line-height: 0.9em;"><td><div id="dateDesc1Area"><input class="dateDescription" id="dateDesc1" value="'+escHtml(dateDesc1Saved)+'"></div></td></tr>' // Date 1 label
|
||||
o += '<tr style="line-height: 0.9em;"><td style="padding-bottom: 0.5em;"><span id="d1full_t2" class="dateDetailsText"></span></td></tr>' // Date 1
|
||||
o += '<tr style="line-height: 0.9em;"><td><div id="dateDesc2Area"><input class="dateDescription" id="dateDesc2" value="'+dateDesc2Saved+'"></div></td></tr>' // Date 2 label
|
||||
o += '<tr style="line-height: 0.9em;"><td><div id="dateDesc2Area"><input class="dateDescription" id="dateDesc2" value="'+escHtml(dateDesc2Saved)+'"></div></td></tr>' // Date 2 label
|
||||
o += '<tr style="line-height: 0.9em;"><td style="padding-bottom: 0.5em;"><span id="d2full_t2" class="dateDetailsText"></span></td></tr>' // Date 2
|
||||
o += '<tr><td style="background: var(--menu-bg-accent); padding: 0.4em 0.75em 0.5em 0.75em;"><span id="dateDurValues" class="dateDetailsText"></span></td></tr>'
|
||||
o += '</tbody></table>'
|
||||
|
||||
Reference in new issue
Block a user