feat: also remove windows like line breaks

This commit is contained in:
Paul-Christian Volkmer 2024-06-13 09:25:46 +02:00
parent 07478cf6a3
commit e1ca2d927a

View File

@ -126,7 +126,7 @@ impl Meldung {
} }
pub fn sanitized_xml_string(&self) -> String { pub fn sanitized_xml_string(&self) -> String {
let re = Regex::new(r"\n\s*").unwrap(); let re = Regex::new(r"[\r|\n]+\s*").unwrap();
let content = re.replace_all(&self.raw_value, "").trim().to_string(); let content = re.replace_all(&self.raw_value, "").trim().to_string();
let re = Regex::new(r"<[^>]+/>").unwrap(); let re = Regex::new(r"<[^>]+/>").unwrap();