Remove escaping chars

This commit is contained in:
2022-11-07 14:26:35 +01:00
parent 2abcf30cd2
commit 7bf20fe967

View File

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