diff --git a/frappe/public/js/frappe/ui/toolbar/search_utils.js b/frappe/public/js/frappe/ui/toolbar/search_utils.js index bcb9349e65..4d9a4fa9be 100644 --- a/frappe/public/js/frappe/ui/toolbar/search_utils.js +++ b/frappe/public/js/frappe/ui/toolbar/search_utils.js @@ -97,7 +97,7 @@ frappe.search.utils = { break; } } else if (match[0]) { - out.label = match[0].bold(); + out.label = frappe.utils.escape_html(match[0]).bold(); out.value = match[0]; } else { console.log("Illegal match", match);