Fix unescaped HTML in type-in-the-answer (#2658)
This commit is contained in:
parent
120c6e165c
commit
e2603a73f5
@ -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 New Issue
Block a user