Skip to content

Commit

Permalink
fix: escape value in multiselect pill (#25516)
Browse files Browse the repository at this point in the history
  • Loading branch information
ankush committed Mar 18, 2024
1 parent a87948b commit d7f82bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frappe/public/js/frappe/form/controls/multiselect_pills.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ frappe.ui.form.ControlMultiSelectPills = class ControlMultiSelectPills extends (
const encoded_value = encodeURIComponent(value);
return `
<button class="data-pill btn tb-selected-value" data-value="${encoded_value}">
<span class="btn-link-to-form">${__(label || value)}</span>
<span class="btn-link-to-form">${__(label || frappe.utils.escape_html(value))}</span>
<span class="btn-remove">${frappe.utils.icon("close")}</span>
</button>
`;
Expand Down

0 comments on commit d7f82bc

Please sign in to comment.