From ffff271362ce8b007893d4ddf86674d2b64046de Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 11 Jul 2013 21:22:51 +0900 Subject: [PATCH] make sure we strip --- aqt/editor.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/aqt/editor.py b/aqt/editor.py index 5b6ee83de..07c0c8f69 100644 --- a/aqt/editor.py +++ b/aqt/editor.py @@ -1133,7 +1133,9 @@ class EditorWebView(AnkiWebView): else: newMime.setText(stripHTML(mime.text())) else: - # no stripping + if html.startswith(""): + html = html[11:] + # no html stripping html = self.editor._filterHTML(html, localize=True) newMime.setHtml(html) return newMime