diff options
author | Vitaly Takmazov | 2018-11-12 14:51:45 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-11-12 14:51:45 +0300 |
commit | 174fb27a6cb4fb652fa0f6eefbc330205ae18aed (patch) | |
tree | 302f4ba20ddf1125ea5386e7d858c33c9f743b53 /src/main | |
parent | 830f62be6710265d4731276eeddf001fc3e0f80d (diff) |
avoid double escaping
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/com/juick/util/MessageUtils.java | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/main/java/com/juick/util/MessageUtils.java b/src/main/java/com/juick/util/MessageUtils.java index 4d31a6cd..e6cd6306 100644 --- a/src/main/java/com/juick/util/MessageUtils.java +++ b/src/main/java/com/juick/util/MessageUtils.java @@ -205,9 +205,6 @@ public class MessageUtils { msg = msg.replaceAll(citateRegex, "<q>$1</q>"); msg = msg.replaceAll("</q><q>", "\n"); - msg = msg.replaceAll("&", "&"); - msg = msg.replaceAll("<", "<"); - msg = msg.replaceAll(">", ">"); msg = msg.replaceAll("\n", "<br/>\n"); return msg; } |