From ca3ecc2da74d09d987449f36b8aa714448e05722 Mon Sep 17 00:00:00 2001 From: Kevin Shenk Date: Mon, 30 Oct 2023 09:04:35 -0400 Subject: [PATCH] fix: Strip HTML tags from SMS Notifications (#22880) --- frappe/email/doctype/notification/notification.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/email/doctype/notification/notification.py b/frappe/email/doctype/notification/notification.py index 9cdb4bdcb0..a8c797a008 100644 --- a/frappe/email/doctype/notification/notification.py +++ b/frappe/email/doctype/notification/notification.py @@ -305,7 +305,7 @@ def get_context(context): def send_sms(self, doc, context): send_sms( receiver_list=self.get_receiver_list(doc, context), - msg=frappe.render_template(self.message, context), + msg=frappe.utils.strip_html_tags(frappe.render_template(self.message, context)), ) def get_list_of_recipients(self, doc, context):