mirror of
https://github.com/flibusta-apps/library_updater.git
synced 2025-12-06 07:45:35 +01:00
Remove escaping chars
This commit is contained in:
@@ -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("\\\"", "\"")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user