Address code review: improve variable naming in esc() helper

Co-authored-by: diluteoxygen <82773456+diluteoxygen@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-02-12 07:03:29 +00:00
parent 368b8c6f6a
commit df6cf0140e

View file

@ -523,10 +523,10 @@ const legend = [
];
// ── Helpers ─────────────────────────────────────────────
function esc(s) {
var d = document.createElement('div');
d.appendChild(document.createTextNode(s));
return d.innerHTML;
function esc(text) {
var tempElement = document.createElement('div');
tempElement.appendChild(document.createTextNode(text));
return tempElement.innerHTML;
}
function priceBadge(p) {