Merge pull request #38529 from AarDG10/fix-note

fix(note): force sanitization in notes
This commit is contained in:
Aarol D'Souza 2026-04-17 17:00:49 +05:30 committed by GitHub
commit c6d1a2362d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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