Version 23.12 (97f43fbd)
Python 3.9.15 Qt 6.6.1 PyQt 6.6.1
No add-ons.
Does not occur on beta 1.
When pasting text from e.g. Wikipedia, Anki strips less HTML than it used to, and also adds a lot of HTML that is absent in the original text. Also, you cannot press shift key when pasting to strip formatting.
-
23.12 beta2:
-
Pasting the same text on 23.12 beta1 (expected behavior):
-
Original HTML (from Lorem ipsum - Wikipedia)
<p>Versions of the <i>Lorem ipsum</i> text have been used in <a href="/wiki/Typesetting" title="Typesetting">typesetting</a> at least since the 1960s, when it was popularized by advertisements for <a href="/wiki/Letraset" title="Letraset">Letraset</a> transfer sheets.<sup id="cite_ref-Cibois_1-0" class="reference"><a href="#cite_note-Cibois-1">[1]</a></sup> <i>Lorem ipsum</i> was introduced to the digital world in the mid-1980s, when <a href="/wiki/Aldus_Corporation" title="Aldus Corporation">Aldus</a> employed it in graphic and word-processing templates for its desktop publishing program <a href="/wiki/Adobe_PageMaker" title="Adobe PageMaker">PageMaker</a>. Other popular <a href="/wiki/Word_processor_(electronic_device)" title="Word processor (electronic device)">word processors</a>, including <a href="/wiki/Pages_(word_processor)" title="Pages (word processor)">Pages</a> and <a href="/wiki/Microsoft_Word" title="Microsoft Word">Microsoft Word</a>, have since adopted <i>Lorem ipsum</i>,<sup id="cite_ref-SDop_2-0" class="reference"><a href="#cite_note-SDop-2">[2]</a></sup> as have many <a href="/wiki/LaTeX" title="LaTeX">LaTeX</a> packages,<sup id="cite_ref-3" class="reference"><a href="#cite_note-3">[3]</a></sup><sup id="cite_ref-4" class="reference"><a href="#cite_note-4">[4]</a></sup><sup id="cite_ref-ms-212251_5-0" class="reference"><a href="#cite_note-ms-212251-5">[5]</a></sup> web content managers such as <a href="/wiki/Joomla!" class="mw-redirect" title="Joomla!">Joomla!</a> and <a href="/wiki/WordPress" title="WordPress">WordPress</a>, and <a href="/wiki/CSS" title="CSS">CSS</a> libraries such as Semantic UI.<sup id="cite_ref-6" class="reference"><a href="#cite_note-6">[6]</a></sup>
</p>
This also happens when copy-pasting text from the Reviewer to the Editor, e.g.