Merge pull request #38945 from AarDG10/fix-search
fix(search): escape link title field
This commit is contained in:
commit
a2b162c960
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue