How to set Allow HTML in Fields permanently?

Before posting, please do the following:

I use HTML in most of my decks. In (much?) earlier versions of Anki, I set the option Allow HTML in Fields to True and it stayed that way for all my imports for all my decks.

Now, it seems to default to False. Which means I often import updates to decks and only find out later that it has brought over ugly HTML as text rather than interpreting it.

Is there a way to make it stick as it did before?

1 Like

Include this at the top of your file:

#html:true

Ref: Text Files - Anki Manual

1 Like

Thank you. I was hoping that there was a way within the app. But I’ll add the necessary lines at the beginning of my files from now on.
Thanks again, @sorata

1 Like

It’s pretty difficult to use those lines.

If I put them on the first rows of the spreadsheet, they are ignored by Anki Import. I presume that this is because LibreOffice Calc writes out a CSV with a lot of commas at the end of those lines (to match up with the columns in the rest of the sheet.

Anki Import ignores them: e.g. β€œ#html:true,” does not set the HTML in Fields to True.

Is it possible to have the Import part of the program ignore any delimiters after expected content or even after a terminating semicolon or similar? The delimiters having already been defined using β€œ#separator:Comma”.

Otherwise, it makes these a little too difficult to use.

Sounds like a Anki > Suggestions to me.

Thanks. Have done so.

For the record, there is no need for a ; at the end

2 Likes