Hidden HTML prevents duplication check

For example, these two cards are not labeled as duplicates even though the visible content is the same. And it’s easy for this to happen when one copy pastes text onto Anki.

Card 1 (add page):

Card 2 (browse page)

You can hold down the Shift key while pasting, to prevent HTML tags from being pasted. Or you can go to Tools / Preferences / Editing and turn on “Paste without shift key strips formatting”

Note: both of the above were temporarily broken with Anki 23.12beta2. HTML tags would get pasted in regardless of Shift key or settings. If using Help / About shows “Version 23.12 (97f43fb)” then you have 23.12beta2 and should upgrade to beta3.

You can search for <div or <span or similar tags in the Browse window. You can also search for &nbsp; to look for cases where spaces are actually non-breaking spaces. Actually, you could use Find and Replace… to replace every occurrence of &nbsp; with an ordinary space, everywhere.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.