Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

fix(js): remove duplicate top-level `const escapeHtml` (#3701) (#3706)

LearningCircuit83f7d4c7845a
diff --git a/src/local_deep_research/web/static/js/collection_details.js b/src/local_deep_research/web/static/js/collection_details.js
index c2bbb892bf..151a853655 100644
--- a/src/local_deep_research/web/static/js/collection_details.js
+++ b/src/local_deep_research/web/static/js/collection_details.js
@@ -500,15 +500,6 @@ function formatBytes(bytes) {
return Math.round(bytes / k ** i * 100) / 100 + ' ' + sizes[i];
}
-// Prefer the full escapeHtml from xss-protection.js; inline fallback if it hasn't loaded yet
-// bearer:disable javascript_lang_manual_html_sanitization
-const escapeHtml = window.escapeHtml || function(str) {
- return String(str).replace(/[&<>"']/g, function(m) {
- return {'&':'&amp;','<':'&lt;','>':'&gt;','"':'&quot;',"'":'&#39;'}[m];
- });
-};
-
-
/**
* Show success message
*/
diff --git a/src/local_deep_research/web/static/js/deletion/confirmation_modal.js b/src/local_deep_research/web/static/js/deletion/confirmation_modal.js
index 65e992cb49..edddfd7df7 100644
--- a/src/local_deep_research/web/static/js/deletion/confirmation_modal.js
+++ b/src/local_deep_research/web/static/js/deletion/confirmation_modal.js
@@ -200,15 +200,6 @@ function hideDeleteModal() {
}
}
-// Prefer the full escapeHtml from xss-protection.js; inline fallback if it hasn't loaded yet
-// bearer:disable javascript_lang_manual_html_sanitization
-const escapeHtml = window.escapeHtml || function(str) {
- return String(str).replace(/[&<>"']/g, function(m) {
- return {'&':'&amp;','<':'&lt;','>':'&gt;','"':'&quot;',"'":'&#39;'}[m];
- });
-};
-
-
/**
* Get tooltip text for an action
*