fix(note): force sanitization in notes
This commit is contained in:
parent
51cfc8181e
commit
10553f80ef
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue