Compare answers should be made by the index of the selected option and not by text.

The compare answers should be made by the index of the selected option and not by text.
Let's suppose someone is using the mathjax library to display LaTeX expressions in HTML source code.
The compare answers will fail because the label text is changed by the mathjax library.