Here you can find the source of sanitizeChatMessage(String message)
public static String sanitizeChatMessage(String message)
//package com.java2s; //License from project: Open Source License public class Main { public static String sanitizeChatMessage(String message) { return message.replaceAll("(\\[|\\]|_|\\*|`)", "\\\\$1"); }//from w w w . j a va 2 s .c o m }