-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Description
Nested clozes generate some weird html, cause they render the inner cloze and then escape it to put in the data-cloze attribute. This results in weird html in attribute:
<span class="cloze" data-cloze="<span class="cloze" data-cloze="" data-ordinal="1">[...]</span>" data-ordinal="1">[...]</span>and that html contains nested html escapes that grow exponentially. This huge html chunk slowes down extract_av_tags to a crawl and crashes anki.
This starts to cause crashes with ~11 nested clozes. Some shared decks on ankiweb have those and a user might make them by mistake, so there should be some kind of safeguard.
Originally reported on https://forums.ankiweb.net/t/memory-leak-when-search-specific-kanji-japanese-hieroglyph/44394/2
Metadata
Metadata
Assignees
Labels
No labels