Address code review: improve variable naming in esc() helper
Co-authored-by: diluteoxygen <82773456+diluteoxygen@users.noreply.github.com>
This commit is contained in:
parent
368b8c6f6a
commit
df6cf0140e
1 changed files with 4 additions and 4 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue