kerrickstaley / genanki

A Python 3 library for generating Anki decks
MIT License
1.99k stars 150 forks source link

Handle HTML in sort field #52

Open kerrickstaley opened 4 years ago

kerrickstaley commented 4 years ago

Anki allows HTML in field data, but for the sort field, it looks like it renders it down to plain ASCII. Currently genanki just copies the field data directly into the sort field, without stripping the HMTL tags. We should mimic Anki's behavior. (Needs more investigation / more detailed examples, just putting this here so I don't lose track of it.)