Fix Invalid Field HTML

AnkiWeb addon 714624709

Rewrites invalid HTML in selected notes, such as unbalanced div tags causing content to display outside field boxes, via a browse-screen menu option, with backup recommended.
AI-generated summary; may contain mistakes.

note-managementformatting

Open on AnkiWeb Find alternatives

AnkiWeb

Votes
2 (πŸ‘ 2 Β· πŸ‘Ž 0)
Updated
2023-10-19
Anki versions
23.10~
License
GPL-3.0 (from the headers of the Python files)
Virus scan
No ClamAV match A match does not prove malware. No match does not prove that the code is safe.
Languages
Python, JSON
Description language
en

Maintenance

abandoned

  • Last update or commit: 2023-10-19 (1109 days before the snapshot).

GitHub

No GitHub repository linked.

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
2.1.02.1.662019-02-21
23.10+2023-10-19
History across monthly snapshots

Loading…

Similar addons

Fix MathJax in Cloze

Fixes cloze conflicts by replacing internal }} with } }, handling trailing braces and nested clozes, and removing non-breaking spaces inside MathJax, with browser and reviewer bulk-fix actions.

note-managementformattingclozebugfix-workaround

1 votes 21% approval πŸ‘ 1 Β· πŸ‘Ž 0 ⭐ 0 Anki 2.1.1~ Updated 2026-04-20
Export to Html 2025

Exports Anki decks to standalone HTML files with customizable templates and CSS, embedded images, Anki search filtering, and live preview before saving.

exportformattingshortcutsfork-or-reupload

3 votes 21% approval πŸ‘ 2 Β· πŸ‘Ž 1 ⭐ 1 Anki 23.09~ Updated 2025-12-15
Sidebar table

Moves the browser's card/note table into the sidebar to maximize the editor area, toggled by menu or configurable shortcut, and optionally minimizes the tags editor.

note-managementshortcutsappearancebeta

5 votes 57% approval πŸ‘ 5 Β· πŸ‘Ž 0 ⭐ 0 Anki 2.1.66~ Updated 2023-04-22
Localize Media

Downloads remote images and audio referenced in selected cards, converts inline base64 images to files, and rewrites references as local media links.

note-managementformatting

29 votes 88% approval πŸ‘ 29 Β· πŸ‘Ž 0 Anki 23.10~ Updated 2023-10-19

Description

If you find that note content appears outside of field boxes when editing a note, this is caused by invalid HTML in your fields - likely as a result of pasting from external sources in Anki 2.0, or from manually editing the HTML in AnkiDroid.

This add-on will attempt to rewrite your HTML, which in the common case of unbalanced div tags, should fix display problems. There may be invalid constructs that get worse when being rewritten however, so you should manually verify any cards you selected are displaying correctly after using the add-on.

You can use it by selecting one or more notes in the browse screen, then using the Fix Invalid HTML menu item from the Notes menu.

Please use caution when using this add-on:

  • Use File>Export to export a backup of your entire collection prior to making any changes.
  • After using the add-on, review any cards you selected to ensure they display correctly. If you notice any problems, you will need to restore from the backup you made.