Looking at those items in the database, the TeX is already stripped for the accordion-group elements. I'm guessing this happens during the sanitization when the text is sent from WeBWorK. Figuring this out will require jumping through some hoops. Let's try to do it in a future round of bug fixing.
See https://github.com/openlab-at-city-tech/webworkqa/issues/115#issuecomment-906766685
Looking at those items in the database, the TeX is already stripped for the accordion-group elements. I'm guessing this happens during the sanitization when the text is sent from WeBWorK. Figuring this out will require jumping through some hoops. Let's try to do it in a future round of bug fixing.