# Bug: Cloze Deletion Mangles HTML

**URL:** <https://forums.ankiweb.net/t/bug-cloze-deletion-mangles-html/32681>\
**Category:** Suggestions\
**Created:** [August 1, 2023, 8:26am UTC](https://forums.ankiweb.net/t/bug-cloze-deletion-mangles-html/32681 "2023-08-01T08:26:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pwintz](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/pwintz/32/10112_2.png) [@pwintz](https://forums.ankiweb.net/u/pwintz)\
**Post date:** [August 1, 2023, 8:26am UTC](https://forums.ankiweb.net/t/bug-cloze-deletion-mangles-html/32681/1 "2023-08-01T08:26:51Z")

</div>

There’s a problem with how text selection interacts with HTML tags in the Add window.  
I’ve recorded a video to show it here: [Video Link](https://drive.google.com/file/d/17qK_njSNPeu92jKLwGtCLRke0wq9yVgI/view?usp=sharing%5D)

* * *

```auto
Version <U+2068>2.1.65 (aa9a734f)<U+2069>
Python 3.9.15 Qt 6.4.3 PyQt 6.4.0

```

(Side note: the Anki version info includes some invisible Unicode characters that show up when copied and pasted into the forum, as seen above).

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [August 2, 2023, 6:09am UTC](https://forums.ankiweb.net/t/bug-cloze-deletion-mangles-html/32681/2 "2023-08-02T06:09:58Z")

</div>

This is tracked on [Convert divs when cloze deleting? · Issue #1051 · ankitects/anki · GitHub](https://github.com/ankitects/anki/issues/1051), and unfortunately is not trivial to fix.
