From 247c968964c4221efeb90b5d9a09fcb8edd69df7 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Thu, 7 Mar 2019 17:18:38 +0530 Subject: [PATCH] Revert "fix: sanitise comments for js events" --- frappe/core/doctype/comment/comment.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/frappe/core/doctype/comment/comment.py b/frappe/core/doctype/comment/comment.py index 248f3c0d8f..a2d5a41cf8 100644 --- a/frappe/core/doctype/comment/comment.py +++ b/frappe/core/doctype/comment/comment.py @@ -12,7 +12,6 @@ from frappe.utils import get_fullname, get_link_to_form from frappe.website.render import clear_cache from frappe.database.schema import add_column from frappe.exceptions import ImplicitCommitError -from html import unescape class Comment(Document): def after_insert(self): @@ -25,8 +24,6 @@ class Comment(Document): def validate(self): if not self.comment_email: self.comment_email = frappe.session.user - if self.content: - self.content = frappe.utils.sanitize_html(unescape(self.content)) def on_update(self): update_comment_in_doc(self)