Java String Sanitize sanitizeChatMessage(String message)

Here you can find the source of sanitizeChatMessage(String message)

Description

sanitize Chat Message

License

Open Source License

Declaration

public static String sanitizeChatMessage(String message) 

Method Source Code

//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
}

Related

  1. sanitize(String value)
  2. sanitizeAppAlias(String appAlias)
  3. sanitizeAttribute(String value)
  4. sanitizeBranchName(String currentBranch)
  5. sanitizeBrowserName(String browserName)
  6. sanitizeClassname(String classname)
  7. sanitizeClassName(String s)
  8. sanitizeColumn(String colName, String relationName)
  9. sanitizeCompletion(String replace)