mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12: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!(
|
format!(
|
||||||
"<code id=typeans>{}</code>",
|
"<code id=typeans>{}</code>",
|
||||||
if self.provided.is_empty() {
|
if self.provided.is_empty() {
|
||||||
self.expected.iter().collect()
|
htmlescape::encode_minimal(&self.expected.iter().collect::<String>())
|
||||||
} else if self.provided == self.expected {
|
} else if self.provided == self.expected {
|
||||||
provided
|
provided
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue