fix(note): force sanitization in notes

This commit is contained in:
AarDG10 2026-04-10 16:55:25 +05:30
parent 51cfc8181e
commit 10553f80ef

View file

@ -36,6 +36,7 @@ class Note(Document):
if not self.content:
self.content = "<span></span>"
self.content = frappe.utils.sanitize_html(self.content, always_sanitize=True)
def before_print(self, settings=None):
self.print_heading = self.name