From 49c37d5a8e41b0d084a7f2f5164b291af4ebe484 Mon Sep 17 00:00:00 2001 From: Suraj Shetty Date: Mon, 27 Aug 2018 20:31:29 +0530 Subject: [PATCH] Add strip html filter --- erpnext/public/js/hub/pages/Buying.vue | 2 +- erpnext/public/js/hub/vue-plugins.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/erpnext/public/js/hub/pages/Buying.vue b/erpnext/public/js/hub/pages/Buying.vue index 57ad46901f..7c3fc27bbd 100644 --- a/erpnext/public/js/hub/pages/Buying.vue +++ b/erpnext/public/js/hub/pages/Buying.vue @@ -14,7 +14,7 @@ >
{{item.recent_message.sender}}: - {{item.recent_message.content}} + {{item.recent_message.content | striphtml}}
diff --git a/erpnext/public/js/hub/vue-plugins.js b/erpnext/public/js/hub/vue-plugins.js index 7d0619f699..e18af0c428 100644 --- a/erpnext/public/js/hub/vue-plugins.js +++ b/erpnext/public/js/hub/vue-plugins.js @@ -60,3 +60,7 @@ Vue.directive('img-src', { handleImage(el, binding.value); } }); + +Vue.filter('striphtml', function (text) { + return strip_html(text); +}); \ No newline at end of file