Merge pull request #38945 from AarDG10/fix-search

fix(search): escape link title field
This commit is contained in:
Aarol D'Souza 2026-04-29 16:40:55 +05:30 committed by GitHub
commit a2b162c960
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -162,8 +162,8 @@ frappe.views.ReportView = class ReportView extends frappe.views.ListView {
// update visible DOM elements and cell tooltip
document.querySelectorAll(`a[data-name="${key}"]`).forEach((el) => {
if (el.innerHTML === link_title) return;
el.innerHTML = link_title;
if (el.textContent === link_title) return;
el.textContent = link_title;
$(el).closest(".dt-cell__content").attr("title", link_title);
});