# Possible Bug? | Anki's {{type:...}} Field

**URL:** <https://forums.ankiweb.net/t/possible-bug-ankis-type-field/56564>\
**Category:** Help\
**Created:** [March 2, 2025, 12:09pm UTC](https://forums.ankiweb.net/t/possible-bug-ankis-type-field/56564 "2025-03-02T12:09:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aqua\_11](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@Aqua\_11](https://forums.ankiweb.net/u/Aqua_11)\
**Post date:** [March 2, 2025, 12:09pm UTC](https://forums.ankiweb.net/t/possible-bug-ankis-type-field/56564/1 "2025-03-02T12:09:15Z")

</div>

Hello,

I am currently brushing up on HTML and I’ve decided to use Anki (which was a good decision). I made my own little card design by copying the “Basic (type-in answer)” card type and modifying its CSS.

In the “Basic (type-in answer)” card type, if i type HTML code, it literally messes with the template code when viewing the back of the card.

For example; at the front of card, if i type something like:

```html
a&#769;

```

It will be the result of the HTML entity: `á` (accented letter “a”).

Changing to a different card type doesn’t fix it, and doing something like `{{text:type:Back}}` also doesn’t do anything.

Also, this doesn’t happen if the answer was incorrect in anyway (wrong/missing letters)

- Happens on: Windows, Linux and Android
- Anki version: Just the latest one for Linux
- Installed extensions: None

Changes the `{{type:...}}` field makes on the template don’t last when answering the card.

---

<div class="post-metadata">

**Author:** ![sorata](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/sorata/32/34115_2.png) [@sorata](https://forums.ankiweb.net/u/sorata)\
**Post date:** [March 4, 2025, 10:27am UTC](https://forums.ankiweb.net/t/possible-bug-ankis-type-field/56564/2 "2025-03-04T10:27:16Z")

</div>

Just to make sure, you’re typing `á` and Anki is converting it to `a&#769;`? If you’re experiencing the opposite (`a&#769;` → `á`), then it’s the normal behaviour I think.

---

<div class="post-metadata">

**Author:** ![Aqua\_11](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@Aqua\_11](https://forums.ankiweb.net/u/Aqua_11)\
**Post date:** [March 18, 2025, 8:07am UTC](https://forums.ankiweb.net/t/possible-bug-ankis-type-field/56564/3 "2025-03-18T08:07:42Z")

</div>

> Just to make sure, you’re typing `á` and Anki is converting it to `a&#769;`?

No, the opposite. It converts HTML entities to the text. This behavior is not specific to HTML entities, it happens with every HTML code.

For example, I have a type-in answer card that asks how to link a tab icon to the page, if you don’t know, this is the code for it:

```html
<link rel="icon" type="image/png" href="icon.png">

```

If I type this line of code into the front of the type-in answer card type and it’s correct, the back would be empty, and the console will display a 404 not found error (trying to fetch `icon.png` which doesn’t exist).

---

<div class="post-metadata">

**Author:** ![sorata](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/sorata/32/34115_2.png) [@sorata](https://forums.ankiweb.net/u/sorata)\
**Post date:** [March 18, 2025, 9:25am UTC](https://forums.ankiweb.net/t/possible-bug-ankis-type-field/56564/4 "2025-03-18T09:25:46Z")

</div>

I now see the issue. It’s certainly undesirable behaviour of you’re trying to learn HTML.

---

<div class="post-metadata">

**Author:** ![Aqua\_11](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@Aqua\_11](https://forums.ankiweb.net/u/Aqua_11)\
**Post date:** [April 9, 2025, 4:21am UTC](https://forums.ankiweb.net/t/possible-bug-ankis-type-field/56564/5 "2025-04-09T04:21:58Z")

</div>

Sorry for a long delay (I don’t visit this site often). Yes it is, and i doubt its by design. I don’t see a scenario where you would want to type HTML code for it to be rendered.

---

<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 9, 2025, 4:22am UTC](https://forums.ankiweb.net/t/possible-bug-ankis-type-field/56564/6 "2025-05-09T04:22:55Z")

</div>

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