Skip to content

Commit 2f2dc0b

Browse files
authored
fix(meteorites-map): minor code beautify.
1 parent 1573a66 commit 2f2dc0b

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

online/meteorites-map.html

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -405,16 +405,7 @@
405405

406406
};
407407

408-
function escapeHTML(value) {
409-
410-
return String(value ?? "")
411-
.replace(/&/g, "&")
412-
.replace(/</g, "&lt;")
413-
.replace(/>/g, "&gt;")
414-
.replace(/"/g, "&quot;")
415-
.replace(/'/g, "&#039;");
416-
417-
}
408+
function escapeHTML(value) { return String(value ?? "").replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#039;"); }
418409

419410
function getRandomInt(min, max) { return Math.floor(Math.random() * (Math.floor(max) - Math.ceil(min) + 1)) + Math.ceil(min); }
420411

@@ -1029,3 +1020,4 @@ <h2>Top ${extendedData.ranking} des classes de météorites:</h2>
10291020
</html>
10301021

10311022

1023+

0 commit comments

Comments
 (0)