Fix ' char in data

This commit is contained in:
2022-11-27 19:53:41 +01:00
parent 7bf20fe967
commit 3ae7b00e22
2 changed files with 57 additions and 43 deletions

View File

@@ -11,7 +11,11 @@ where
}
pub fn remove_wrong_chars(s: &str) -> String {
s.replace(';', "").replace('\n', " ").replace('ё', "е").replace("\\\"", "\"")
s.replace(';', "")
.replace('\n', " ")
.replace('ё', "е")
.replace("\\\"", "\"")
.replace("\\'", "'")
}
pub fn parse_lang(s: &str) -> String {
@@ -24,4 +28,5 @@ pub fn fix_annotation_text(text: &str) -> String {
.replace("[/b]", "")
.replace("[hr]", "")
.replace("\\\"", "\"")
.replace("\\'", "'")
}