From 568b0380a1f0967909c2eb04fed00390c066250a Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Wed, 29 Jun 2016 12:57:23 +0530 Subject: [PATCH] [fix] strip html of title in listview --- frappe/public/js/frappe/list/listview.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frappe/public/js/frappe/list/listview.js b/frappe/public/js/frappe/list/listview.js index 2b1a307685..63d1e779c9 100644 --- a/frappe/public/js/frappe/list/listview.js +++ b/frappe/public/js/frappe/list/listview.js @@ -327,7 +327,7 @@ frappe.views.ListView = Class.extend({ data._name_encoded = encodeURIComponent(data.name); data._submittable = frappe.model.is_submittable(this.doctype); - data._title = data[this.title_field || "name"] || data["name"]; + data._title = strip_html(data[this.title_field || "name"] || data["name"]); data._full_title = data._title; if(data._title.length > 40) { @@ -390,4 +390,4 @@ frappe.views.ListView = Class.extend({ var icon_html = ""; $(parent).append(repl(icon_html, {icon_class: icon_class, label: __(label) || ''})); } -}); \ No newline at end of file +});