From add8e2cb74f555dc732a9c7d48ae5039d184884e Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Wed, 1 Jun 2016 09:04:08 +0200 Subject: [PATCH] don't replace \n\t\r --- src/main/java/eu/siacs/conversations/utils/XmlHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/utils/XmlHelper.java b/src/main/java/eu/siacs/conversations/utils/XmlHelper.java index 198ce28b9..8cd551a0a 100644 --- a/src/main/java/eu/siacs/conversations/utils/XmlHelper.java +++ b/src/main/java/eu/siacs/conversations/utils/XmlHelper.java @@ -7,7 +7,7 @@ public class XmlHelper { content = content.replace(">", ">"); content = content.replace("\"", """); content = content.replace("'", "'"); - content = content.replaceAll("\\p{Cc}", ""); + content = content.replaceAll("\\p{Cc}&&[^\n\r\t]", ""); return content; } }