From 49ef5739a7ac890fc412fc8ba09079188effaf2f Mon Sep 17 00:00:00 2001 From: Shni Date: Wed, 15 Oct 2025 12:35:16 -0500 Subject: [PATCH] =?UTF-8?q?fix:=20Corregir=20formato=20de=20la=20funci?= =?UTF-8?q?=C3=B3n=20escapeHtml=20en=20el=20archivo=20dashboard=5Fitems.ej?= =?UTF-8?q?s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/server/views/partials/dashboard/dashboard_items.ejs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/views/partials/dashboard/dashboard_items.ejs b/src/server/views/partials/dashboard/dashboard_items.ejs index a91ed18..875b462 100644 --- a/src/server/views/partials/dashboard/dashboard_items.ejs +++ b/src/server/views/partials/dashboard/dashboard_items.ejs @@ -127,7 +127,7 @@ Array.from(list.querySelectorAll('.delBtn')).forEach(b=>b.addEventListener('click', onDelete)); } - function escapeHtml(s){ if (!s) return ''; return String(s).replace(/[&<>"']/g, (m)=>({ '&':'&','<':'<','>':'>','"':'"','\'":"'' })[m] || m); } + function escapeHtml(s){ if (!s) return ''; return String(s).replace(/[&<>"']/g, (m)=>({'&':'&','<':'<','>':'>','"':'"',"'":'''})[m] || m); } function onEdit(e) { const id = e.currentTarget.getAttribute('data-id');