Package com.illumon.util.text
Class ScriptSanitizer
java.lang.Object
com.illumon.util.text.ScriptSanitizer
public class ScriptSanitizer extends Object
-
Constructor Summary
Constructors Constructor Description ScriptSanitizer()
-
Method Summary
Modifier and Type Method Description static String
sanitizeScriptCode(String commandToSanitize)
Replaces unwanted characters like smart quotes with the standard equivalent.
-
Constructor Details
-
ScriptSanitizer
public ScriptSanitizer()
-
-
Method Details
-
sanitizeScriptCode
Replaces unwanted characters like smart quotes with the standard equivalent. Used so that copy and paste operations from tools like Outlook or Slack don't result in unusable scripts.- Parameters:
commandToSanitize
- the command to sanitize- Returns:
- the command with unwanted characters replaced with allowable characters
-