fix: remove duplicate escapeHtml in viewer.js (already imported)
All checks were successful
CI / lint (push) Successful in 11s
CI / security (push) Successful in 8s
CI / test (push) Successful in 19s
CI / build (push) Successful in 2s

This commit is contained in:
Bruno Charest 2026-05-28 16:58:25 -04:00
parent 7c927ca54e
commit 33cfefcb20

View File

@ -600,13 +600,8 @@ function renderFile(data) {
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
// Helpers // Helpers (escapeHtml imported from utils.js)
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
function escapeHtml(str) {
if (!str) return "";
return String(str).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
}
function el(tag, attrs, children) { function el(tag, attrs, children) {
const e = document.createElement(tag); const e = document.createElement(tag);
if (attrs) { if (attrs) {