mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 06:52:21 -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];
|
tag = allowedTagsBasic[node.tagName];
|
||||||
}
|
}
|
||||||
if (!tag) {
|
if (!tag) {
|
||||||
if (!node.innerHTML) {
|
if (!node.innerHTML || node.tagName === 'TITLE') {
|
||||||
node.parentNode.removeChild(node);
|
node.parentNode.removeChild(node);
|
||||||
} else {
|
} else {
|
||||||
node.outerHTML = node.innerHTML;
|
node.outerHTML = node.innerHTML;
|
||||||
|
|
Loading…
Reference in a new issue