# Bug: "Edit HTML" in adding cards

**URL:** <https://forums.ankiweb.net/t/bug-edit-html-in-adding-cards/5133>\
**Category:** Help\
**Created:** [November 14, 2020, 9:08pm UTC](https://forums.ankiweb.net/t/bug-edit-html-in-adding-cards/5133 "2020-11-14T21:08:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ren0x](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/ren0x/32/129_2.png) [@Ren0x](https://forums.ankiweb.net/u/Ren0x)\
**Post date:** [November 14, 2020, 9:08pm UTC](https://forums.ankiweb.net/t/bug-edit-html-in-adding-cards/5133/1 "2020-11-14T21:08:05Z")

</div>

Hi,

when I edit the content of a card in HTML and type  
`<tbody>...</tbody></table>`  
it will lead to the error shown in the screenshot.

The opening `<table>` tag is missing which in combination with the `<tbody>` tag might be the issue.

The user loses the typed content.

`OS: macOS Catalina, 10.15.7`  
`Anki Version: 2.1.35 (84dcaa86), Python 3.8.0 Qt 5.14.2 PyQt 5.14.2`

 ![Снимок экрана 2020-11-14 в 22.09.44](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/1/1a883e25f8a69006883a64efe50c625314404a74.png)

---

<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:** [November 15, 2020, 11:53pm UTC](https://forums.ankiweb.net/t/bug-edit-html-in-adding-cards/5133/2 "2020-11-15T23:53:22Z")

</div>

Anki makes some attempt to handle invalid HTML, but it can’t cope with this case. In an ideal world Anki would cope with whatever broken HTML you input, but it currently does not.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)\
**Post date:** [May 1, 2023, 5:23am UTC](https://forums.ankiweb.net/t/bug-edit-html-in-adding-cards/5133/3 "2023-05-01T05:23:12Z")

</div>


