mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Fix unescaped HTML in type-in-the-answer (#2658)
This commit is contained in:
parent
120c6e165c
commit
e2603a73f5
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ impl DiffContext {
|
|||
format!(
|
||||
"<code id=typeans>{}</code>",
|
||||
if self.provided.is_empty() {
|
||||
self.expected.iter().collect()
|
||||
htmlescape::encode_minimal(&self.expected.iter().collect::<String>())
|
||||
} else if self.provided == self.expected {
|
||||
provided
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue