From 7bf20fe96742a1bd01d13d1c695e93d2812c85f3 Mon Sep 17 00:00:00 2001 From: Bulat Kurbanov Date: Mon, 7 Nov 2022 14:26:35 +0100 Subject: [PATCH] Remove escaping chars --- src/utils.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils.rs b/src/utils.rs index 7057b61..e58c61f 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -11,7 +11,7 @@ where } 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 { @@ -23,5 +23,5 @@ pub fn fix_annotation_text(text: &str) -> String { .replace("[b]", "") .replace("[/b]", "") .replace("[hr]", "") - .replace("\"", "") + .replace("\\\"", "\"") }