From 7f7887af668386832b5dfa5ad22765b1e9705d57 Mon Sep 17 00:00:00 2001 From: venkataakhil Date: Sat, 24 Jun 2023 22:13:14 +0530 Subject: [PATCH] Additonal html tags to be removed --- smart_service/apis/support.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/smart_service/apis/support.py b/smart_service/apis/support.py index 3a1e474..7c0a13b 100644 --- a/smart_service/apis/support.py +++ b/smart_service/apis/support.py @@ -452,6 +452,9 @@ def remove_html_tags(): frappe.db.sql('''update tabProcedure_Details set content= replace(content,'<','<'); ''') frappe.db.sql('''update tabProcedure_Details set content= replace(content,'

',''); ''') frappe.db.sql('''update tabProcedure_Details set content= replace(content,'

',''); ''') + frappe.db.sql('''update tabProcedure_Details set content= replace(content,"
  1. ",''); ''') + frappe.db.sql('''update tabProcedure_Details set content= replace(content,"
",''); ''') + frappe.db.commit() return True, 'Done' except Exception as e: