mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
make sure we strip <!--anki-->
This commit is contained in:
parent
0fa9b75af5
commit
ffff271362
1 changed files with 3 additions and 1 deletions
|
@ -1133,7 +1133,9 @@ class EditorWebView(AnkiWebView):
|
|||
else:
|
||||
newMime.setText(stripHTML(mime.text()))
|
||||
else:
|
||||
# no stripping
|
||||
if html.startswith("<!--anki-->"):
|
||||
html = html[11:]
|
||||
# no html stripping
|
||||
html = self.editor._filterHTML(html, localize=True)
|
||||
newMime.setHtml(html)
|
||||
return newMime
|
||||
|
|
Loading…
Reference in a new issue