diff --git a/src/pasta.rs b/src/pasta.rs index 81c68442..7899937d 100644 --- a/src/pasta.rs +++ b/src/pasta.rs @@ -144,7 +144,7 @@ impl Pasta { } pub fn content_escaped(&self) -> String { - html_escape::encode_text(&self.content.replace('`', "\\`").replace('$', "\\$")).to_string() + html_escape::encode_text(&self.content.replace('\\', "\\\\").replace('`', "\\`").replace('$', "\\$")).to_string() } }