mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
ignore title in html paste
https://anki.tenderapp.com/discussions/ankidesktop/29375-paste
This commit is contained in:
parent
36b2a889cc
commit
d1a09d5ed1
1 changed files with 1 additions and 1 deletions
|
@ -427,7 +427,7 @@ var filterNode = function (node, extendedMode) {
|
|||
tag = allowedTagsBasic[node.tagName];
|
||||
}
|
||||
if (!tag) {
|
||||
if (!node.innerHTML) {
|
||||
if (!node.innerHTML || node.tagName === 'TITLE') {
|
||||
node.parentNode.removeChild(node);
|
||||
} else {
|
||||
node.outerHTML = node.innerHTML;
|
||||
|
|
Loading…
Reference in a new issue