mirror of
https://github.com/ankitects/anki.git
synced 2025-11-06 12:47:11 -05:00
Fix unescaped HTML in correct type-in answers
This commit is contained in:
parent
d24d2e3394
commit
55e6ddfed8
2 changed files with 2 additions and 1 deletions
|
|
@ -252,6 +252,7 @@ Amanda Sternberg <mandis.sternberg@gmail.com>
|
|||
arold0 <arold0@icloud.com>
|
||||
nav1s <nav1s@proton.me>
|
||||
Ranjit Odedra <ranjitodedra.dev@gmail.com>
|
||||
Eltaurus <https://github.com/Eltaurus-Lt>
|
||||
|
||||
********************
|
||||
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ trait DiffTrait {
|
|||
if self.get_typed() == self.get_expected() {
|
||||
format_typeans!(format!(
|
||||
"<span class=typeGood>{}</span>",
|
||||
self.get_expected_original()
|
||||
htmlescape::encode_minimal(self.get_expected_original().into())
|
||||
))
|
||||
} else {
|
||||
let output = self.to_tokens();
|
||||
|
|
|
|||
Loading…
Reference in a new issue