fix: Strip HTML tags from SMS Notifications (#22880)

This commit is contained in:
Kevin Shenk 2023-10-30 09:04:35 -04:00 committed by GitHub
parent e06200400f
commit ca3ecc2da7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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):