fix: убрать дублирующее объявление escapeHtml

Две одноимённые функции в одном файле — только вторая (с явным
экранированием кавычек) реально выполнялась, первая была мёртвым
кодом и сбивала с толку при чтении.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Mikhail Chusavitin
2026-08-24 18:39:05 +03:00
co-authored by Claude Sonnet 5
parent 414c8a7de2
commit 3329ff12f3
-7
View File
@@ -2328,13 +2328,6 @@ function updateCartUI() {
document.getElementById('cart-items').innerHTML = html; 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) { function updateServerModelForQuote(value) {
serverModelForQuote = value || ''; serverModelForQuote = value || '';
scheduleArticlePreview(); scheduleArticlePreview();