Skip to content

Commit

Permalink
Merge pull request #161 from mooons/dev-escape-backslash
Browse files Browse the repository at this point in the history
Escape backslash for Copy Text function
  • Loading branch information
szabodanika authored Jun 26, 2023
2 parents b6841a5 + 83f3209 commit 2a15f40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pasta.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}

Expand Down

0 comments on commit 2a15f40

Please # to comment.