From 10c439ff017df338ae20207de27f12c13684b064 Mon Sep 17 00:00:00 2001 From: diptanilsaha Date: Mon, 3 Aug 2026 13:15:23 +0530 Subject: [PATCH] fix: escape item name and item title on item_selector --- erpnext/public/js/templates/item_selector.html | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/erpnext/public/js/templates/item_selector.html b/erpnext/public/js/templates/item_selector.html index 86a15f49072..0839077f57d 100644 --- a/erpnext/public/js/templates/item_selector.html +++ b/erpnext/public/js/templates/item_selector.html @@ -1,17 +1,19 @@
{% for (var i=0; i < data.length; i++) { var item = data[i]; %} + {% const item_name = frappe.utils.escape_html(item.name); %} + {% const item_title = frappe.utils.escape_html(item.item_name || item.name); %} {% if (i % 4 === 0) { %}