Fix HTML escaping in char rendering

This commit is contained in:
Kogia-sima 2020-07-10 00:30:25 +09:00
parent 5c4c66f331
commit 7d0538b244
1 changed files with 1 additions and 0 deletions

View File

@ -85,6 +85,7 @@ impl Render for char {
'&' => b.push_str("&"),
'<' => b.push_str("&lt;"),
'>' => b.push_str("&gt;"),
'\'' => b.push_str("&#039;"),
_ => b.push(*self),
}
Ok(())