From 3329ff12f390a442744ed01eb1adf80d94a4b28a Mon Sep 17 00:00:00 2001 From: Mikhail Chusavitin Date: Mon, 24 Aug 2026 18:39:05 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20=D1=83=D0=B1=D1=80=D0=B0=D1=82=D1=8C=20?= =?UTF-8?q?=D0=B4=D1=83=D0=B1=D0=BB=D0=B8=D1=80=D1=83=D1=8E=D1=89=D0=B5?= =?UTF-8?q?=D0=B5=20=D0=BE=D0=B1=D1=8A=D1=8F=D0=B2=D0=BB=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D0=B5=20escapeHtml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Две одноимённые функции в одном файле — только вторая (с явным экранированием кавычек) реально выполнялась, первая была мёртвым кодом и сбивала с толку при чтении. Co-Authored-By: Claude Sonnet 5 --- web/templates/index.html | 7 ------- 1 file changed, 7 deletions(-) diff --git a/web/templates/index.html b/web/templates/index.html index 464bc28..017cb26 100644 --- a/web/templates/index.html +++ b/web/templates/index.html @@ -2328,13 +2328,6 @@ function updateCartUI() { document.getElementById('cart-items').innerHTML = html; } -function escapeHtml(text) { - if (!text) return ''; - const div = document.createElement('div'); - div.textContent = text; - return div.innerHTML; -} - function updateServerModelForQuote(value) { serverModelForQuote = value || ''; scheduleArticlePreview();