Skip to content

Commit

Permalink
Revert "fix: escape text types before setting disp area (#25520) (#25522
Browse files Browse the repository at this point in the history
)" (#25604)

This reverts commit e446770.

(cherry picked from commit 0bf0cb8)
  • Loading branch information
ankush authored and mergify[bot] committed Mar 22, 2024
1 parent b3473e3 commit a2994d1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions frappe/public/js/frappe/form/controls/base_input.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,11 @@ frappe.ui.form.ControlInput = class ControlInput extends frappe.ui.form.Control
} else {
value = this.value || value;
}
if (["Data", "Long Text", "Small Text", "Text", "Password"].includes(this.df.fieldtype)) {
if (this.df.fieldtype === "Data") {
value = frappe.utils.escape_html(value);
}
let doc = this.doc || (this.frm && this.frm.doc);
let display_value = frappe.format(value, this.df, { no_icon: true, inline: true }, doc);
// This is used to display formatted output AND showing values in read only fields
this.disp_area && $(this.disp_area).html(display_value);
}
set_label(label) {
Expand Down

0 comments on commit a2994d1

Please sign in to comment.