aboutsummaryrefslogtreecommitdiff
path: root/src/zen/frontend/html/csvstats.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/zen/frontend/html/csvstats.js')
-rw-r--r--src/zen/frontend/html/csvstats.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/zen/frontend/html/csvstats.js b/src/zen/frontend/html/csvstats.js
index a50b2f068..fc006acdc 100644
--- a/src/zen/frontend/html/csvstats.js
+++ b/src/zen/frontend/html/csvstats.js
@@ -2,10 +2,7 @@
// CSV Profiler stats viewer — category/stat tree with line-chart visualization.
import { getCsvSeries } from "./api.js";
-
-function escapeHtml(s) {
- return String(s).replace(/[&<>"']/g, (c) => ({"&":"&amp;","<":"&lt;",">":"&gt;","\"":"&quot;","'":"&#39;"}[c]));
-}
+import { escapeHtml } from "./util.js";
function formatTime(us) {
if (us < 1000) return `${us} \u00b5s`;