aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/juick/util/MessageUtils.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/main/java/com/juick/util/MessageUtils.java b/src/main/java/com/juick/util/MessageUtils.java
index 84c29807..5cc8bb97 100644
--- a/src/main/java/com/juick/util/MessageUtils.java
+++ b/src/main/java/com/juick/util/MessageUtils.java
@@ -144,6 +144,11 @@ public class MessageUtils {
}
public static String formatMessage(String msg) {
+ // > citate
+ msg = msg.replaceAll(citateRegex, "<q>$1</q>");
+ msg = msg.replaceAll("</q><q>", "\n");
+
+
msg = msg.replaceAll("&", "&amp;");
msg = msg.replaceAll("<", "&lt;");
msg = msg.replaceAll(">", "&gt;");
@@ -204,10 +209,6 @@ public class MessageUtils {
m.appendTail(sb);
msg = sb.toString();
- // > citate
- msg = msg.replaceAll(citateRegex, "<q>$1</q>");
- msg = msg.replaceAll("</q><q>", "\n");
-
msg = msg.replaceAll("\n", "<br/>\n");
return msg;
}