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 ───────────────────────────────────────────── // ── Helpers ─────────────────────────────────────────────
function esc(s) { function esc(text) {
var d = document.createElement('div'); var tempElement = document.createElement('div');
d.appendChild(document.createTextNode(s)); tempElement.appendChild(document.createTextNode(text));
return d.innerHTML; return tempElement.innerHTML;
} }
function priceBadge(p) { function priceBadge(p) {