From 264450ac5a3e745f94185265b48f9ae512d93f80 Mon Sep 17 00:00:00 2001 From: Gregory Riker Date: Tue, 18 Feb 2014 05:57:26 -0700 Subject: [PATCH] Skip sanitizing in comments editor when special tag detected. --- src/calibre/gui2/comments_editor.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/calibre/gui2/comments_editor.py b/src/calibre/gui2/comments_editor.py index bae3168b0f..f7dae2e49a 100644 --- a/src/calibre/gui2/comments_editor.py +++ b/src/calibre/gui2/comments_editor.py @@ -343,6 +343,10 @@ class EditorWidget(QWebView): # {{{ if not check and '' in raw.lower(): + return unicode(self.page().mainFrame().toHtml()) + try: root = html.fromstring(raw) except: