Skip to content

Commit

Permalink
fix: escape text types before setting disp area
Browse files Browse the repository at this point in the history
  • Loading branch information
ankush committed Mar 18, 2024
1 parent 0a81407 commit f0be964
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frappe/public/js/frappe/form/controls/base_input.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ frappe.ui.form.ControlInput = class ControlInput extends frappe.ui.form.Control
} else {
value = this.value || value;
}
if (this.df.fieldtype === "Data") {
if (["Data", "Long Text", "Small Text", "Text", "Password"].includes(this.df.fieldtype)) {
value = frappe.utils.escape_html(value);
}
let doc = this.doc || (this.frm && this.frm.doc);
Expand Down

0 comments on commit f0be964

Please sign in to comment.